$(foreach i,\
?BASE? $(notdir $(%DIR%_LISP)), \
?!BASE? $(patsubst $(srcdir)/%,%,$(%DIR%_LISP)), \
-## Also remove the '.elc' byte-compiled versions (if any).
+## Also remove the '.elc' byte-compiled versions, if any.
$(i) $(i)c))
endif %?INSTALL%
@test -n '$(and $(%DIR%_SCRIPTS),$(%NDIR%dir))' || exit 0; \
echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
$(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
- $(foreach i,$(%DIR%_SCRIPTS), \
+## Ending a recipe with a backslash cause some shells to choke,
+## so add a dummy ':' command to make sure the rest of the command
+## is not empty.
+ :; $(foreach i,$(%DIR%_SCRIPTS), \
p=$(call am.vpath.rewrite,$i); \
## If the _SCRIPTS variable has an entry like foo/bar, install it as
## $(destdir)/bar, not $(destdir)/foo/bar. The user can make a new dir
$(ETAGS) \
$(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$(foreach f,$(am.tags.subfiles),'$(am.tags.include-option)=$(CURDIR)/$f') \
- $(am.tags.files.unique)
+## Some shells choke when a recipe ends with a backslash. So make sure the
+## next line is not an empty string.
+ $(or $(am.tags.files.unique),;)
endif
ctags-am: $(TAGS_DEPENDENCIES) $(am.tags.files)
ifneq ($(or $(CTAGS_ARGS),$(am.tags.files.unique)),)
$(CTAGS) \
$(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $(am.tags.files.unique)
+## Some shells choke when a recipe ends with a backslash. So make sure the
+## next line is not an empty string.
+ $(or $(am.tags.files.unique),;)
endif
am.clean.dist.f += TAGS tags
rellist='$(notdir $(and $(infodir),$^))'; \
test -n "$$rellist" || exit 0; \
for relfile in $$rellist; do \
- echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\
+ echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'"; \
## Run ":" after install-info in case install-info fails. We really
## don't care about failures here, because they can be spurious. For
## instance if you don't have a dir file, install-info will fail. I
## think instead it should create a new dir file for you. This bug
## causes the "make distcheck" target to fail reliably.
- install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\
- done; \
+ install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :; \
+ done
.am/install-dvi: $(DVIS)
@$(NORMAL_INSTALL)