Thu Apr 4 15:10:50 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * automake.in (handle_scripts): Never allow scripts_installed to
+ become 0.
+
+ * scripts.am (install-@DIR@SCRIPTS): Scripts can be found in
+ srcdir.
+
* automake.in (generate_makefile): Derived file names from given
input; don't assume Makefile.in and Makefile.am.
(am_file_name, in_file_name): New globals.
# NOTE we no longer automatically clean SCRIPTS, because it is
# useful to sometimes distribute scripts verbatim. This happens
# eg in Automake itself.
- $scripts_installed = &am_install_var ('scripts', 'SCRIPTS',
- 'bin', 'sbin', 'libexec', 'pkgdata',
- 'noinst', 'check');
+ local ($msi);
+ $msi = &am_install_var ('scripts', 'SCRIPTS',
+ 'bin', 'sbin', 'libexec', 'pkgdata',
+ 'noinst', 'check');
# We really only want a boolean value.
- $scripts_installed = 1 if $scripts_installed;
+ $scripts_installed = 1 if $msi;
if ($scripts_installed)
{
list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
if test -f $$p; then \
$(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
- else :; fi; \
+ else if test -f $(srcdir)/$$p; then \
+ $(INSTALL_SCRIPT) $(srcdir)/$$p \
+ $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
+ else :; fi; fi; \
done
uninstall-@DIR@SCRIPTS:
list="$(@DIR@_SCRIPTS)"; for p in $$list; do \
if test -f $$p; then \
$(INSTALL_SCRIPT) $$p $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
- else :; fi; \
+ else if test -f $(srcdir)/$$p; then \
+ $(INSTALL_SCRIPT) $(srcdir)/$$p \
+ $(@DIR@dir)/`echo $$p|sed '$(transform)'`; \
+ else :; fi; fi; \
done
uninstall-@DIR@SCRIPTS: