@for p in $(bin_SCRIPTS); do \
f="`echo $$p|sed '$(transform)'`"; \
fv="$$f-$(APIVERSION)"; \
- rm -f $(DESTDIR)$(bindir)/$$fv; \
- echo " $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv"; \
- $(LN) $(DESTDIR)$(bindir)/$$f $(DESTDIR)$(bindir)/$$fv; \
+ rm -f "$(DESTDIR)$(bindir)/$$fv"; \
+ echo " $(LN) '$(DESTDIR)$(bindir)/$$f' '$(DESTDIR)$(bindir)/$$fv'"; \
+ $(LN) "$(DESTDIR)$(bindir)/$$f" "$(DESTDIR)$(bindir)/$$fv"; \
done
uninstall-hook:
@for p in $(bin_SCRIPTS); do \
f="`echo $$p|sed '$(transform)'`"; \
fv="$$f-$(APIVERSION)"; \
- rm -f $(DESTDIR)$(bindir)/$$fv; \
+ rm -f "$(DESTDIR)$(bindir)/$$fv"; \
done
rev=$$1 dir=$$2 \
&& echo "$@: will get files from revision $$rev" \
&& git clone -q --depth 1 "$$am_gitdir" tmp \
- && cd tmp \
+ && $(am__cd) tmp \
&& git checkout -q "$$rev" \
&& echo "$@: bootstrapping $$rev" \
&& $(SHELL) ./bootstrap \
&& echo "$@: copying files from $$rev" \
&& makefile_ins=`find . -name Makefile.in` \
&& (tar cf - configure aclocal.m4 $$makefile_ins) | \
- (cd .. && cd "$$dir" && tar xf -) \
+ (cd .. && $(am__cd) "$$dir" && tar xf -) \
&& cd .. \
&& rm -rf tmp; \
}; \
&& git --git-dir="$$am_gitdir" describe $$NEW_COMMIT >/dev/null \
&& rm -rf $$outdir \
&& mkdir $$outdir \
- && cd $$outdir \
+ && $(am__cd) $$outdir \
&& mkdir new old \
&& get_autofiles_from_rev $$OLD_COMMIT old \
&& get_autofiles_from_rev $$NEW_COMMIT new \
# aclocal-$(APIVERSION) and automake-$(APIVERSION) are generated by
# configure in tests/.
$(srcdir)/amhello-1.0.tar.gz: $(amhello_sources) $(top_srcdir)/configure.ac
- $(AM_V_GEN)abs_top_builddir=`cd '$(top_builddir)' && pwd` && \
- PATH="$$abs_top_builddir/tests$(PATH_SEPARATOR)$$PATH" && \
+ $(AM_V_GEN): && \
+ PATH="$(abs_top_builddir)/tests$(PATH_SEPARATOR)$$PATH" && \
export PATH && \
- cd $(srcdir)/amhello && \
+ $(am__cd) $(srcdir)/amhello && \
ACLOCAL=aclocal-$(APIVERSION) && export ACLOCAL && \
AUTOMAKE=automake-$(APIVERSION) && export AUTOMAKE && \
AUTOCONF='$(am_AUTOCONF)' && export AUTOCONF && \
install-data-hook:
@$(POST_INSTALL)
@for prog in $(dist_script_DATA); do \
- echo " chmod +x $(DESTDIR)$(scriptdir)/$$prog"; \
- chmod +x $(DESTDIR)$(scriptdir)/$$prog; \
+ echo " chmod +x '$(DESTDIR)$(scriptdir)/$$prog'"; \
+ chmod +x "$(DESTDIR)$(scriptdir)/$$prog"; \
done
## `test -x' is not portable. So we use Perl instead. If Perl
## if FILES is empty or if it contains shell meta characters (e.g. $ is
## commonly used in Java filenames).
sc_no_for_variable_in_macro:
- @if grep 'for .* in \$$(' $(ams); then \
+ @if grep 'for .* in \$$(' $(ams) | grep -v '/Makefile\.am:'; then \
echo 'Use "list=$$(mumble); for var in $$$$list".' 1>&2 ; \
exit 1; \
else :; fi
## Make sure all invocations of mkinstalldirs are correct.
sc_mkinstalldirs:
- @if grep -n 'mkinstalldirs' $(ams) | \
- grep -F -v '$$(mkinstalldirs)'; then \
+ @if grep -n 'mkinstalldirs' $(ams) \
+ | grep -F -v '$$(mkinstalldirs)' \
+ | grep -v '^\./lib/Makefile.am:37: *mkinstalldirs \\$$'; \
+ then \
echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
exit 1; \
else :; fi
dirs='$(test_subdirs)'; \
test -n "$$dirs" || dirs=.; \
## List of tests on filesystem. Be careful to cater for VPATH builds too.
- for ext in $(TEST_EXTENSIONS); do \
+ test_extensions='$(TEST_EXTENSIONS)'; \
+ for ext in $$test_extensions; do \
for dir in $$dirs; do \
ls $$dir/*$$ext 2>/dev/null; \
if test $(srcdir) != $(builddir); then \
- (cd $(srcdir) && ls $$dir/*$$ext 2>/dev/null); \
+ ($(am__cd) $(srcdir) && ls $$dir/*$$ext 2>/dev/null); \
fi; \
done; \
done | sed 's,^\./,,' | sort | uniq >$(am__tfs); \