(&file_contents): Be able to grow Automake macros with `+='.
(&handle_texinfo, &handle_man_pages, &am_install_var): Let your
files define _am_installdirs.
(&handle_installdirs): Remove the code, just output `install.am'.
* install.am: New.
* data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
* python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
2001-02-26 Akim Demaille <akim@epita.fr>
+ * automake.in (@installdirs): Remove.
+ (&file_contents): Be able to grow Automake macros with `+='.
+ (&handle_texinfo, &handle_man_pages, &am_install_var): Let your
+ files define _am_installdirs.
+ (&handle_installdirs): Remove the code, just output `install.am'.
+ * install.am: New.
+ * data.am, header.am, libs.am, lisp.am, ltlib.am, mans.am, progs.am,
+ * python.am, scripts.am, texinfos.am: Extend $(_am_installdirs).
+
+2001-02-26 Akim Demaille <akim@epita.fr>
+
* tests/instdata2.test (libexec_DATA): Exercise more
possibilities.
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_FLAG =
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
aclocal: $(top_builddir)/config.status aclocal.in
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
-
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
DVIPS = dvips
.dvi.ps:
$(DVIPS) $< -o $@
-
?EXEC?insexec-data-am: install-info-am
?!EXEC?install-data-am: install-info-am
install-info-am: $(INFO_DEPS)
rm -f $$i-[0-9]*; \
fi; \
done
-
install-dist_pkgdataDATA: $(dist_pkgdata_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
done
-
install-dist_scriptDATA: $(dist_script_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(scriptdir)
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_PROGRAM_ENV='$(INSTALL_STRIP_PROGRAM_ENV)' install
+
installdirs: installdirs-recursive
installdirs-am:
- $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) \
- $(DESTDIR)$(dist_pkgdatadir) \
- $(DESTDIR)$(dist_scriptdir)
-
+ $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(infodir) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(scriptdir)
mostlyclean-generic:
if (! defined $options{'no-installinfo'})
{
- push (@installdirs, '$(DESTDIR)$(infodir)');
# Make sure documentation is made and installed first. Use
# $(INFO_DEPS), not 'info', because otherwise recursive makes
# get run twice during "make all".
foreach my $sect (sort keys %sections)
{
&define_variable ('man' . $sect . 'dir', '$(mandir)/man' . $sect);
- push (@installdirs, '$(DESTDIR)$(mandir)/man' . $sect)
- unless defined $options{'no-installman'};
$output_rules .= &file_contents ('mans',
&transform ('SECTION', $sect));
}
# Deal with installdirs target.
sub handle_installdirs
{
- # GNU Makefile standards recommend this.
- if (&variable_defined ('SUBDIRS'))
- {
- # We create a separate `-am' target so that the -recursive
- # rule will work correctly.
- $output_rules .= ("installdirs: installdirs-recursive\n"
- . "installdirs-am:\n");
- &depend ('.PHONY', 'installdirs-am');
- }
- else
- {
- $output_rules .= "installdirs:\n";
- }
- &depend ('.PHONY', 'installdirs');
- if (@installdirs)
- {
- &pretty_print_rule ("\t" . '$(mkinstalldirs) ', "\t\t",
- @installdirs);
- }
- $output_rules .= "\n";
+ $output_rules .= &file_contents
+ ('install',
+ transform ('_am_installdirs' => $am_var_defs{'_am_installdirs'}));
}
# There are several targets which need to be merged. This is because
%dist_dirs = ();
# List of dependencies for the obvious targets.
- @installdirs = ();
-
@info = ();
@dvi = ();
@all = ();
}
elsif (/$MACRO_PATTERN/mso)
{
- $result_vars .= "$separator$comment$_\n"
- unless defined $contents{$1};
- $comment = $separator = '';
- &prog_error ("$file:$.: macro \`$1' with trailing backslash")
+ my ($var, $type, $val) = ($1, $2, $3);
+ &prog_error ("$file:$.: macro \`$var' with trailing backslash")
if /\\$/;;
- $am_var_defs{$1} = $3;
+ # Accumulating variables must not be output.
+ if ($type eq '+')
+ {
+ $am_var_defs{$var} .= ($am_var_defs{$var} && ' ') . $val;
+ }
+ else
+ {
+ $am_var_defs{$var} = $val;
+ $result_vars .= "$separator$comment$_\n"
+ unless defined $contents{$var};
+ }
+ $comment = $separator = '';
}
else
{
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
?EXEC?.PHONY install-exec-am: install-@DIR@DATA
?!EXEC?.PHONY install-data-am: install-@DIR@DATA
install-@DIR@DATA: $(@DIR@_DATA)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
?EXEC?.PHONY install-exec-am: install-@DIR@HEADERS
?!EXEC?.PHONY install-data-am: install-@DIR@HEADERS
install-@DIR@HEADERS: $(@DIR@_HEADERS)
--- /dev/null
+## automake - create Makefile.in from Makefile.am
+## Copyright 2001 Free Software Foundation, Inc.
+
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+
+?SUBDIRS?.PHONY: installdirs installdirs-am installdirs-recursive
+?SUBDIRS?installdirs: installdirs-recursive
+?SUBDIRS?installdirs-am:
+?SUBDIRS??_am_installdirs? $(mkinstalldirs) @_am_installdirs@
+
+?!SUBDIRS?.PHONY: installdirs
+?!SUBDIRS?installdirs:
+?!SUBDIRS??_am_installdirs? $(mkinstalldirs) @_am_installdirs@
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
?EXEC?.PHONY install-exec-am: install-@DIR@DATA
?!EXEC?.PHONY install-data-am: install-@DIR@DATA
install-@DIR@DATA: $(@DIR@_DATA)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
?EXEC?.PHONY install-exec-am: install-@DIR@HEADERS
?!EXEC?.PHONY install-data-am: install-@DIR@HEADERS
install-@DIR@HEADERS: $(@DIR@_HEADERS)
--- /dev/null
+## automake - create Makefile.in from Makefile.am
+## Copyright 2001 Free Software Foundation, Inc.
+
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; either version 2, or (at your option)
+## any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program; if not, write to the Free Software
+## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+## 02111-1307, USA.
+
+?SUBDIRS?.PHONY: installdirs installdirs-am installdirs-recursive
+?SUBDIRS?installdirs: installdirs-recursive
+?SUBDIRS?installdirs-am:
+?SUBDIRS??_am_installdirs? $(mkinstalldirs) @_am_installdirs@
+
+?!SUBDIRS?.PHONY: installdirs
+?!SUBDIRS?installdirs:
+?!SUBDIRS??_am_installdirs? $(mkinstalldirs) @_am_installdirs@
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@LIBRARIES
install-@DIR@LIBRARIES: $(@DIR@_LIBRARIES)
@$(NORMAL_INSTALL)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
?EXEC?.PHONY install-exec-am: install-@DIR@LISP
?!EXEC?.PHONY install-data-am: install-@DIR@LISP
install-@DIR@LISP: $(@DIR@_LISP) $(ELCFILES)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@LTLIBRARIES
install-@DIR@LTLIBRARIES: $(@DIR@_LTLIBRARIES)
@$(NORMAL_INSTALL)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+?INSTALL_MAN?_am_installdirs += $(DESTDIR)$(man@SECTION@dir)
.PHONY install-man: install-man@SECTION@
install-man@SECTION@: $(man@SECTION@_MANS) $(man_MANS)
@$(NORMAL_INSTALL)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@PROGRAMS
install-@DIR@PROGRAMS: $(@DIR@_PROGRAMS)
@$(NORMAL_INSTALL)
## automake - create Makefile.in from Makefile.am
-## Copyright 1999 Free Software Foundation, Inc.
+## Copyright 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@DIR@dir)
.PHONY install-exec-am: install-@DIR@PYTHON
install-@DIR@PYTHON: $(@DIR@_PYTHON)
@$(NORMAL_INSTALL)
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@SCRIPTS
install-@DIR@SCRIPTS: $(@DIR@_SCRIPTS)
@$(NORMAL_INSTALL)
## break a possible install-sh reference.
## Funny name due to --cygnus influence; we want to reserve
## `install-info' for the user.
+?INSTALL-INFO?_am_installdirs += $(DESTDIR)$(infodir)
.PHONY: install-info-am
?EXEC??INSTALL-INFO?insexec-data-am: install-info-am
?!EXEC??INSTALL-INFO?install-data-am: install-info-am
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@LIBRARIES
install-@DIR@LIBRARIES: $(@DIR@_LIBRARIES)
@$(NORMAL_INSTALL)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
?EXEC?.PHONY install-exec-am: install-@DIR@LISP
?!EXEC?.PHONY install-data-am: install-@DIR@LISP
install-@DIR@LISP: $(@DIR@_LISP) $(ELCFILES)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@LTLIBRARIES
install-@DIR@LTLIBRARIES: $(@DIR@_LTLIBRARIES)
@$(NORMAL_INSTALL)
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_FLAG =
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= CONFIG_LINKS= $(SHELL) ./config.status
-
install-m4dataDATA: $(m4data_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(m4datadir)
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_PROGRAM_ENV='$(INSTALL_STRIP_PROGRAM_ENV)' install
-installdirs:
- $(mkinstalldirs) $(DESTDIR)$(m4datadir)
+installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(m4datadir)
mostlyclean-generic:
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+?INSTALL_MAN?_am_installdirs += $(DESTDIR)$(man@SECTION@dir)
.PHONY install-man: install-man@SECTION@
install-man@SECTION@: $(man@SECTION@_MANS) $(man_MANS)
@$(NORMAL_INSTALL)
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@PROGRAMS
install-@DIR@PROGRAMS: $(@DIR@_PROGRAMS)
@$(NORMAL_INSTALL)
## automake - create Makefile.in from Makefile.am
-## Copyright 1999 Free Software Foundation, Inc.
+## Copyright 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@DIR@dir)
.PHONY install-exec-am: install-@DIR@PYTHON
install-@DIR@PYTHON: $(@DIR@_PYTHON)
@$(NORMAL_INSTALL)
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+_am_installdirs += $(DESTDIR)$(@NDIR@dir)
.PHONY install-exec-am: install-@DIR@SCRIPTS
install-@DIR@SCRIPTS: $(@DIR@_SCRIPTS)
@$(NORMAL_INSTALL)
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_FLAG =
INSTALL_HEADER = $(INSTALL_DATA)
transform = @program_transform_name@
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_PROGRAM_ENV='$(INSTALL_STRIP_PROGRAM_ENV)' install
-installdirs:
+installdirs:
mostlyclean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
-rm -f Makefile.in
-clean: clean-am
+maintainer-clean-am: distclean-am maintainer-clean-generic
-clean-am: clean-generic mostlyclean-am
+.PHONY: all all-am check check-TESTS check-am clean clean-generic \
+ distclean distclean-generic distdir dvi dvi-am info info-am \
+ install install-am install-data install-data-am install-exec \
+ install-exec-am install-strip installcheck installcheck-am \
+ installdirs maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic uninstall uninstall-am
-distclean: distclean-am
+install-man:
-distclean-am: clean-am distclean-generic distclean-local
+distclean: distclean-am
-install-data-am:
+clean-am: clean-generic mostlyclean-am
install-exec-am:
-install-man:
+install-data-am:
+
+distclean-am: clean-am distclean-generic distclean-local
maintainer-clean: maintainer-clean-am
-maintainer-clean-am: distclean-am maintainer-clean-generic
+mostlyclean-am: mostlyclean-generic
mostlyclean: mostlyclean-am
-mostlyclean-am: mostlyclean-generic
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am info info-am \
- install install-am install-data install-data-am install-exec \
- install-exec-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic uninstall uninstall-am
+clean: clean-am
distclean-local:
## break a possible install-sh reference.
## Funny name due to --cygnus influence; we want to reserve
## `install-info' for the user.
+?INSTALL-INFO?_am_installdirs += $(DESTDIR)$(infodir)
.PHONY: install-info-am
?EXEC??INSTALL-INFO?insexec-data-am: install-info-am
?!EXEC??INSTALL-INFO?install-data-am: install-info-am