diff options
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | configure.ac | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 7bb11ea..c36d171 100644 --- a/Makefile.am +++ b/Makefile.am @@ -23,6 +23,13 @@ SUBDIRS = man bin_PROGRAMS = mkfontscale bin_SCRIPTS = mkfontdir +CLEANFILES = $(bin_SCRIPTS) +EXTRA_DIST = $(bin_SCRIPTS:=.in) +DIR_SUBSTS = -e 's|@bindir[@]|$(bindir)|g' + +mkfontdir: mkfontdir.in + $(AM_V_GEN)$(SED) $(DIR_SUBSTS) < $(srcdir)/mkfontdir.in > $@ + AM_CPPFLAGS = @MKFONTSCALE_CFLAGS@ @X11_CFLAGS@ -D_BSD_SOURCE AM_CFLAGS = $(CWARNFLAGS) mkfontscale_LDADD = @MKFONTSCALE_LIBS@ @@ -59,4 +66,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 5f5e463..7363bba 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,5 @@ XORG_WITH_LINT AC_CONFIG_FILES([ Makefile - mkfontdir man/Makefile]) AC_OUTPUT |