From fa554ab53809943cb141e07687c96364d91e3f9c Mon Sep 17 00:00:00 2001 From: Kevin E Martin Date: Sat, 2 Jul 2005 21:42:05 +0000 Subject: mkfontdir: Add build system for bdftopcf, mkfontdir and mkfontscale --- Makefile.am | 11 ++++++++++- configure.ac | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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]) -- cgit v1.2.3