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.
This commit is contained in:
Jim Meyering committed 2014-07-13 10:30:24 -07:00
1 parent 71e2ea7734
commit 4d82df724e
1 file changed
+1 -1
+1 -1
View File
@@ -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';; \