diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-12-06 22:07:17 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-12-06 22:07:17 (EST) |
commit | 42f5c3de2feaf43447ab439e8ca53bab03327b42 (patch) | |
tree | 8d38f0f541a4a3b6a2efce263774ed79d4d4e6d9 | |
parent | 198146200ac0e2ff624706f18cc12b749fcef439 (diff) |
Makefile.am: Preprocess scripts with shpp
-rw-r--r-- | Makefile.am | 11 |
1 files changed, 9 insertions, 2 deletions
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 $@)" |