diff options
-rw-r--r-- | Makefile.am | 11 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 90315ee..a589208 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,6 +21,15 @@ SUBDIRS = man bin_PROGRAMS = mkfontscale +bin_SCRIPTS = mkfontdir + +dist_man1_MANS = mkfontdir.man + +mkfontdir: mkfontdir.cpp + $(SED) s,BINDIR,`echo $(MKFONTSCALE) | $(SED) s,/[^/]*$$,,`, < $< | $(SED) s/XCOMM/\#/ > $@ + +EXTRA_DIST = mkfontdir.cpp +CLEANFILES = $(bin_SCRIPTS) AM_CPPFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ -D_BSD_SOURCE AM_CFLAGS = $(CWARNFLAGS) @@ -58,4 +67,4 @@ lint: $(LINT) $(ALL_LINT_FLAGS) $(mkfontscale_SOURCES) endif LINT -EXTRA_DIST = README.md +EXTRA_DIST += README.md diff --git a/configure.ac b/configure.ac index ee427ed..8e8401e 100644 --- a/configure.ac +++ b/configure.ac @@ -61,6 +61,10 @@ PKG_CHECK_MODULES(X11, [xproto >= 7.0.25]) dnl Allow checking code with lint, sparse, etc. XORG_WITH_LINT +dnl From mkfontdir/configure.ac +AC_PATH_PROG(SED, sed) +AC_PATH_PROG(MKFONTSCALE, mkfontscale) + AC_CONFIG_FILES([ Makefile man/Makefile]) |