summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2006-03-05 19:52:51 +0000
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-02-18 17:53:51 -0800
commit1d15009075c3d316bd54c5861ac2859330ab2e64 (patch)
treea1586675ac2c2e1f5838f771ba9cf944092635c1
parent1cb06c20467030fddf6a0a7be855f6849cadf7b4 (diff)
mkfontdir: Let BSD make find mkfontdir.cpp when building in a separate obj dir
-rw-r--r--Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index a12fe4f..5defac4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,8 +25,10 @@ bin_SCRIPTS = mkfontdir
dist_man1_MANS = mkfontdir.man
-mkfontdir: mkfontdir.cpp
- $(SED) s,BINDIR,`echo @bindir@/mkfontscale | $(SED) s,/[^/]*$$,,`, < mkfontdir.cpp | $(SED) s/XCOMM/\#/ > $@
+.cpp:
+ $(SED) s,BINDIR,`echo @bindir@/mkfontscale | $(SED) s,/[^/]*$$,,`, < $< | $(SED) s/XCOMM/\#/ > $@
+
+SUFFIXES = .cpp
EXTRA_DIST = mkfontdir.cpp
CLEANFILES = $(bin_SCRIPTS)