summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 129ff23..8e41304 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,11 +35,16 @@ EXTRA_DIST = \
SUFFIXES = .sh .sm
+cmds = $$(printf '%s ' $(pkgdatacmd_SCRIPTS) | \
+ sed -e 's|[^ ]*/\([^ ]*\)\.sm |\1 |g')
+textdomain = $$(printf '%s\n' '$(PACKAGE)' | sed -e 's|-|_|g')
do_subst = sed \
-e 's|[@]PACKAGE[@]|$(PACKAGE)|g' \
-e 's|[@]VERSION[@]|$(VERSION)|g' \
-e 's|[@]SH[@]|$(SH)|g' \
- -e 's|[@]pkgdatadir[@]|$(pkgdatadir)|g'
+ -e 's|[@]pkgdatadir[@]|$(pkgdatadir)|g' \
+ -e "s|[@]cmds[@]|$(cmds)|g" \
+ -e "s|[@]textdomain[@]|$(textdomain)|g"
in-place:
$(MAKE) $(AM_MAKEFLAGS) pkgdatadir=lib all-am