summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2005-07-02 21:42:05 +0000
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-02-18 17:45:28 -0800
commitfa554ab53809943cb141e07687c96364d91e3f9c (patch)
tree5b1f4ddbc2e087d524d6e72aad3b295695e74bca /Makefile.am
parentc40a94766668aad01ef57eea181752a370762cd0 (diff)
mkfontdir: Add build system for bdftopcf, mkfontdir and mkfontscale
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 10 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