diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-03-07 13:23:00 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-03-07 13:23:00 -0800 |
commit | 29cab25240cf30f546671f265167a2eeadfd4c75 (patch) | |
tree | 1e5d829edbb2233a2f212cbf0bac9a754b6c4464 /Makefile.am | |
parent | 8fbafcfe7e5ef4a2030e3963f31143bba2c8786f (diff) |
Revert "Use autoconf instead of sed to substitute @bindir@ in mkfontdir.in"
This reverts commit 1f9d14bec07092d62da29a5a233cefbf84d47289.
It caused https://gitlab.freedesktop.org/xorg/app/mkfontscale/issues/5
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 8 insertions, 1 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 |