From 4d82df724ef1ee0809aa294c68f7cc11c9c0f0f5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 13 Jul 2014 10:24:33 -0700 Subject: build: adjust new rule not to depend on bash-4.x * man/local.mk (man/dynamic-deps.mk): Use the same code to derive FOO from man/FOO.1 as in the .x.1 rule below. Using the more concise "name=$${man:4: -2}" is not portable enough. --- man/local.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'man') diff --git a/man/local.mk b/man/local.mk index 0f0b66e25..a4117b110 100644 --- a/man/local.mk +++ b/man/local.mk @@ -61,7 +61,7 @@ CLEANFILES += man/dynamic-deps.mk man/dynamic-deps.mk: Makefile $(AM_V_GEN)rm -f $@ $@-t $(AM_V_at)for man in $(ALL_MANS); do \ - name=$${man:4: -2} ; # Space is important \ + name=`echo "$$man"|sed 's|.*/||; s|\.1$$||'` || exit 1; \ case $$name in \ arch) prog='uname';; \ install) prog='ginstall';; \ -- cgit v1.2.3-54-g00ecf