summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am11
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 $@)"