From 7f52743b4e4430936313157856ba2f55cc096d71 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 23 Oct 2013 12:52:37 -0400 Subject: Makefile.am: New "cmds" and "textdomain" vars. --- 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 -- cgit v0.9.1