From 42f5c3de2feaf43447ab439e8ca53bab03327b42 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Dec 2015 22:07:17 -0500 Subject: Makefile.am: Preprocess scripts with shpp --- diff --git a/Makefile.am b/Makefile.am index 6f351d5..2710d96 100644 --- a/Makefile.am +++ b/Makefile.am @@ -36,6 +36,11 @@ prokit_SOURCES = \ $(pkgdatacmd_SCRIPTS) \ $(pkgdataprofile_SCRIPTS) \ $(pkgdatapackage_SCRIPTS) +prokit_SHPPFLAGS = \ + -DPKGDATADIR="$(pkgdatadir)" \ + -DLOCALEDIR="$(localedir)" \ + -DPKGLOCALSTATEDIR="$(pkglocalstatedir)" \ + -DTEXTDOMAIN="$(textdomain)" prokit_LDADD = $(prokit_SOURCES:.sh=.sm) prokit_LINK = '$(srcdir)/tools/shld.sh' -I '$(SH)' -o $@ config.sh @@ -227,12 +232,14 @@ release: .sh: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" - $(AM_V_at)$(do_subst) $< >$@ + $(AM_V_at)'$(srcdir)/tools/shpp.sh' $(prokit_SHPPFLAGS) $< | \ + $(do_subst) >$@ $(AM_V_at)chmod a+x $@ .sh.sm: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" - $(AM_V_at)$(do_subst) $< >$@ + $(AM_V_at)'$(srcdir)/tools/shpp.sh' $(prokit_SHPPFLAGS) $< | \ + $(do_subst) >$@ .1in.1: $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" -- cgit v0.9.1