Wed Apr 2 00:03:50 1997 Tom Tromey <tromey@cygnus.com>
+ * automake.in (handle_tags): Use single, not double, quotes when
+ setting list variable.
+ * data.am, header.am, libs.am, lisp.am, ltlib.am, progs-clean.am,
+ progs.am, scripts.am, tags.am: Use single quotes to fill list
+ variable; otherwise `$' in filename will not work. From Per
+ Bothner.
+
* mdate-sh: Use "ls -d" so mdate-sh can be run on a directory.
From Bruno Haible.
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(bindir)
- @list="$(bin_SCRIPTS)"; for p in $$list; do \
+ @list='$(bin_SCRIPTS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \
$(INSTALL_SCRIPT) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
uninstall-binSCRIPTS:
$(NORMAL_UNINSTALL)
- list="$(bin_SCRIPTS)"; for p in $$list; do \
+ list='$(bin_SCRIPTS)'; for p in $$list; do \
rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
done
install-pkgdataSCRIPTS: $(pkgdata_SCRIPTS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(pkgdatadir)
- @list="$(pkgdata_SCRIPTS)"; for p in $$list; do \
+ @list='$(pkgdata_SCRIPTS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_SCRIPT) $$p $(pkgdatadir)/`echo $$p|sed '$(transform)'`"; \
$(INSTALL_SCRIPT) $$p $(pkgdatadir)/`echo $$p|sed '$(transform)'`; \
uninstall-pkgdataSCRIPTS:
$(NORMAL_UNINSTALL)
- list="$(pkgdata_SCRIPTS)"; for p in $$list; do \
+ list='$(pkgdata_SCRIPTS)'; for p in $$list; do \
rm -f $(pkgdatadir)/`echo $$p|sed '$(transform)'`; \
done
install-pkgdataDATA: $(pkgdata_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(pkgdatadir)
- @list="$(pkgdata_DATA)"; for p in $$list; do \
+ @list='$(pkgdata_DATA)'; for p in $$list; do \
if test -f $(srcdir)/$$p; then \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(pkgdatadir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(pkgdatadir)/$$p; \
uninstall-pkgdataDATA:
$(NORMAL_UNINSTALL)
- list="$(pkgdata_DATA)"; for p in $$list; do \
+ list='$(pkgdata_DATA)'; for p in $$list; do \
rm -f $(pkgdatadir)/$$p; \
done
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
- list="$(SUBDIRS)"; for subdir in $$list; do \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
(cd $$subdir && $(MAKE) tags); \
done
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES)
tags=; \
here=`pwd`; \
- list="$(SUBDIRS)"; for subdir in $$list; do \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
done; \
test -z "$(ETAGS_ARGS)$(SOURCES)$(HEADERS)$$tags" \
if (&variable_defined ('SUBDIRS'))
{
$output_rules .= ("tags-recursive:\n"
- . "\tlist=\"\$(SUBDIRS)\"; for subdir in \$\$list; do \\\n"
+ . "\tlist=\'\$(SUBDIRS)\'; for subdir in \$\$list; do \\\n"
# Never fail here if a subdir fails; it
# isn't important.
. "\t (cd \$\$subdir && \$(MAKE) tags); \\\n"
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_DATA)"; for p in $$list; do \
+ @list='$(@DIR@_DATA)'; for p in $$list; do \
if test -f $(srcdir)/$$p; then \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p; \
uninstall-@DIR@DATA:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_DATA)"; for p in $$list; do \
+ list='$(@DIR@_DATA)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_HEADERS)"; for p in $$list; do \
+ @list='$(@DIR@_HEADERS)'; for p in $$list; do \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p; \
done
uninstall-@DIR@HEADERS:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_HEADERS)"; for p in $$list; do \
+ list='$(@DIR@_HEADERS)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_DATA)"; for p in $$list; do \
+ @list='$(@DIR@_DATA)'; for p in $$list; do \
if test -f $(srcdir)/$$p; then \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p; \
uninstall-@DIR@DATA:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_DATA)"; for p in $$list; do \
+ list='$(@DIR@_DATA)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_HEADERS)"; for p in $$list; do \
+ @list='$(@DIR@_HEADERS)'; for p in $$list; do \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p; \
done
uninstall-@DIR@HEADERS:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_HEADERS)"; for p in $$list; do \
+ list='$(@DIR@_HEADERS)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- list="$(@DIR@_LIBRARIES)"; for p in $$list; do \
+ list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_DATA) $$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $$p $(@DIR@dir)/$$p; \
## useless; sh never actually executes this command. Read the GNU
## Standards for a little enlightenment on this.
@$(POST_INSTALL)
- @list="$(@DIR@_LIBRARIES)"; for p in $$list; do \
+ @list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
## Must ranlib after installing because mod time changes.
echo " $(RANLIB) $(@DIR@dir)/$$p"; \
uninstall-@DIR@LIBRARIES:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_LIBRARIES)"; for p in $$list; do \
+ list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_LISP)"; for p in $$list; do \
+ @list='$(@DIR@_LISP)'; for p in $$list; do \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p; \
## Only install .elc file if it exists.
uninstall-@DIR@LISP:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_LISP)"; for p in $$list; do \
+ list='$(@DIR@_LISP)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p $(@DIR@dir)/$${p}c; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_LTLIBRARIES)"; for p in $$list; do \
+ @list='$(@DIR@_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
## Note that we explicitly set the libtool mode. This avoids any lossage
## if the program doesn't have a name that libtool expects.
uninstall-@DIR@LTLIBRARIES:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_LTLIBRARIES)"; for p in $$list; do \
+ list='$(@DIR@_LTLIBRARIES)'; for p in $$list; do \
@LIBTOOL --mode=uninstall@ rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_PROGRAMS)"; for p in $$list; do \
+ @list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
## This works even in Cygwin32, because we've explicitly touched the
## "real" program name after building it.
if test -f $$p; then \
uninstall-@DIR@PROGRAMS:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_PROGRAMS)"; for p in $$list; do \
+ list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
rm -f $(@DIR@dir)/`echo $$p|sed '$(transform)'`@EXEEXT@; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
+ @list='$(@DIR@_SCRIPTS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`@EXEEXT@"; \
$(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`@EXEEXT@; \
uninstall-@DIR@SCRIPTS:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
+ list='$(@DIR@_SCRIPTS)'; for p in $$list; do \
rm -f $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
done
here=`pwd`; \
## It is ok to examine SUBDIRS here in every case; if it is empty,
## there is a slight performance hit. But we don't care.
- list="$(SUBDIRS)"; for subdir in $$list; do \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
done; \
## Make sure we have something to run etags on.
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- list="$(@DIR@_LIBRARIES)"; for p in $$list; do \
+ list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_DATA) $$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $$p $(@DIR@dir)/$$p; \
## useless; sh never actually executes this command. Read the GNU
## Standards for a little enlightenment on this.
@$(POST_INSTALL)
- @list="$(@DIR@_LIBRARIES)"; for p in $$list; do \
+ @list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
## Must ranlib after installing because mod time changes.
echo " $(RANLIB) $(@DIR@dir)/$$p"; \
uninstall-@DIR@LIBRARIES:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_LIBRARIES)"; for p in $$list; do \
+ list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_LISP)"; for p in $$list; do \
+ @list='$(@DIR@_LISP)'; for p in $$list; do \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(@DIR@dir)/$$p; \
## Only install .elc file if it exists.
uninstall-@DIR@LISP:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_LISP)"; for p in $$list; do \
+ list='$(@DIR@_LISP)'; for p in $$list; do \
rm -f $(@DIR@dir)/$$p $(@DIR@dir)/$${p}c; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_LTLIBRARIES)"; for p in $$list; do \
+ @list='$(@DIR@_LTLIBRARIES)'; for p in $$list; do \
if test -f $$p; then \
## Note that we explicitly set the libtool mode. This avoids any lossage
## if the program doesn't have a name that libtool expects.
uninstall-@DIR@LTLIBRARIES:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_LTLIBRARIES)"; for p in $$list; do \
+ list='$(@DIR@_LTLIBRARIES)'; for p in $$list; do \
@LIBTOOL --mode=uninstall@ rm -f $(@DIR@dir)/$$p; \
done
install-m4dataDATA: $(m4data_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(m4datadir)
- @list="$(m4data_DATA)"; for p in $$list; do \
+ @list='$(m4data_DATA)'; for p in $$list; do \
if test -f $(srcdir)/$$p; then \
echo " $(INSTALL_DATA) $(srcdir)/$$p $(m4datadir)/$$p"; \
$(INSTALL_DATA) $(srcdir)/$$p $(m4datadir)/$$p; \
uninstall-m4dataDATA:
$(NORMAL_UNINSTALL)
- list="$(m4data_DATA)"; for p in $$list; do \
+ list='$(m4data_DATA)'; for p in $$list; do \
rm -f $(m4datadir)/$$p; \
done
tags: TAGS
clean-@DIR@PROGRAMS:
NOTCYGWIN test -z "$(@DIR@_PROGRAMS)" || rm -f $(@DIR@_PROGRAMS)
-CYGWIN @list="$(@DIR@_PROGRAMS)"; for p in $$list; do \
+CYGWIN @list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
CYGWIN rm -f $$p $$p$(EXEEXT); \
CYGWIN done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_PROGRAMS)"; for p in $$list; do \
+ @list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
## This works even in Cygwin32, because we've explicitly touched the
## "real" program name after building it.
if test -f $$p; then \
uninstall-@DIR@PROGRAMS:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_PROGRAMS)"; for p in $$list; do \
+ list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
rm -f $(@DIR@dir)/`echo $$p|sed '$(transform)'`@EXEEXT@; \
done
$(mkinstalldirs) $(@DIR@dir)
## Funny invocation because Makefile variable can be empty, leading to
## a syntax error in sh.
- @list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
+ @list='$(@DIR@_SCRIPTS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`@EXEEXT@"; \
$(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`@EXEEXT@; \
uninstall-@DIR@SCRIPTS:
$(NORMAL_UNINSTALL)
- list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
+ list='$(@DIR@_SCRIPTS)'; for p in $$list; do \
rm -f $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
done
here=`pwd`; \
## It is ok to examine SUBDIRS here in every case; if it is empty,
## there is a slight performance hit. But we don't care.
- list="$(SUBDIRS)"; for subdir in $$list; do \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
done; \
## Make sure we have something to run etags on.