summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-23 12:52:37 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-23 12:52:37 (EDT)
commit7f52743b4e4430936313157856ba2f55cc096d71 (patch)
tree2ab719d2e33f42d2ea22ebf61430db97f9ecfc85
parentb0d036cb281a9d59946409810b98a175877006fb (diff)
Makefile.am: New "cmds" and "textdomain" vars.
-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