Don't deal with install-data-am, install-exec-am and unstall-am.
(&initialize_per_input): Add them to %dependencies.
Remove %exec_dir_p since the *.am files are now in charge of it.
Remove @uninstall, @install_data, @install_exec.
(&handle_merge_targets): Adjust to these removals.
(&file_contents): Also &transform_cond for --no-installman and
--no-installinfo.
(&do_one_merge_target): Add some magic to install hooks on
%dependencies' targets.
(%required_targets): New.
(&handle_factored_dependencies): Output required targets.
* data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
* mans-vars.am, mans.am, progs.am, python.am, scripts.am,
* texinfos.am: Declare your dependencies on install-data-am,
install-exec-am and uninstall-am.
* tests/instdata2.test (incldata_HEADERS): New test.
+2001-02-25 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&handle_texinfo, &handle_man_pages, &am_install_var):
+ Don't deal with install-data-am, install-exec-am and unstall-am.
+ (&initialize_per_input): Add them to %dependencies.
+ Remove %exec_dir_p since the *.am files are now in charge of it.
+ Remove @uninstall, @install_data, @install_exec.
+ (&handle_merge_targets): Adjust to these removals.
+ (&file_contents): Also &transform_cond for --no-installman and
+ --no-installinfo.
+ (&do_one_merge_target): Add some magic to install hooks on
+ %dependencies' targets.
+ (%required_targets): New.
+ (&handle_factored_dependencies): Output required targets.
+ * data.am, header.am, java.am, libs.am, lisp.am, ltlib.am,
+ * mans-vars.am, mans.am, progs.am, python.am, scripts.am,
+ * texinfos.am: Declare your dependencies on install-data-am,
+ install-exec-am and uninstall-am.
+ * tests/instdata2.test (incldata_HEADERS): New test.
+
2001-02-24 Tom Tromey <tromey@redhat.com>
* Makefile.am (amfiles): Added texibuild.am.
* automake.in: Formatting and mying changes.
-
2001-02-23 Akim Demaille <akim@epita.fr>
* automake.in: Formatting and mying changes.
-
2001-02-23 Akim Demaille <akim@epita.fr>
* automake.in (&handle_man_pages): Let install-man and
about libtool, and maintainer-clean.
* clean.am, libtool.am: Handle these.
-
2001-02-05 Akim Demaille <akim@epita.fr>
* automake.in (handle_texinfo): No longer hard code the clean
TEXINFOS = automake.texi
DATA = $(dist_pkgdata_DATA) $(dist_script_DATA)
-DIST_COMMON = README $(dist_pkgdata_DATA) $(dist_script_DATA) AUTHORS \
-COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS README-alpha \
-THANKS TODO aclocal.in aclocal.m4 ansi2knr.1 ansi2knr.c automake.in \
-compile config.guess config.sub configure configure.in depcomp \
-elisp-comp install-sh mdate-sh missing mkinstalldirs py-compile \
-stamp-vti texinfo.tex version.texi ylwrap
+DIST_COMMON = mkinstalldirs automake.in install-sh version.texi \
+aclocal.m4 README-alpha ansi2knr.c Makefile.am mdate-sh NEWS COPYING \
+stamp-vti ansi2knr.1 AUTHORS compile Makefile.in configure.in README \
+depcomp THANKS configure ylwrap elisp-comp py-compile ChangeLog missing \
+config.sub texinfo.tex INSTALL $(dist_script_DATA) aclocal.in \
+config.guess TODO $(dist_pkgdata_DATA)
DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
automake.info: automake.texi $(srcdir)/version.texi
automake.dvi: automake.texi $(srcdir)/version.texi
-.texi.info:
- @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
- cd $(srcdir) \
- && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
-
-.texi.dvi:
- TEXINPUTS=$(srcdir):$$TEXINPUTS \
- MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
-
-.texi:
- @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
- cd $(srcdir) \
- && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
DVIPS = dvips
.dvi.ps:
check: check-recursive
installcheck-am: installcheck-local
installcheck: installcheck-recursive
-install-exec-am: install-binSCRIPTS
install-exec: install-exec-recursive
-
-install-data-am: install-info-am install-dist_pkgdataDATA \
- install-dist_scriptDATA
- @$(NORMAL_INSTALL)
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
install-data: install-data-recursive
-
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-recursive
-uninstall-am: uninstall-binSCRIPTS uninstall-info \
- uninstall-dist_pkgdataDATA uninstall-dist_scriptDATA
uninstall: uninstall-recursive
all-am: Makefile $(INFO_DEPS) $(SCRIPTS) $(DATA)
install-strip:
@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-recursive
-
-clean-am: clean-generic mostlyclean-am
-
-dist-all: dist
-
-distclean: distclean-recursive
- -rm -f config.status
-
-distclean-am: clean-am distclean-generic distclean-tags
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f config.status
-
maintainer-clean-am: distclean-am maintainer-clean-aminfo \
maintainer-clean-generic maintainer-clean-vti
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti
+uninstall-am: uninstall-binSCRIPTS uninstall-dist_pkgdataDATA \
+ uninstall-dist_scriptDATA uninstall-info
.PHONY: all all-am all-recursive check check-am check-recursive clean \
- clean-generic clean-recursive dist dist-all distcheck distclean \
- distclean-generic distclean-recursive distclean-tags distdir \
- dvi dvi-am dvi-recursive info info-am info-recursive install \
- install-am install-binSCRIPTS install-data install-data-am \
- install-data-recursive install-dist_pkgdataDATA \
+ clean-generic clean-recursive dist dist-all dist-info distcheck \
+ distclean distclean-generic distclean-recursive distclean-tags \
+ distdir dvi dvi-am dvi-recursive info info-am info-recursive \
+ install install-am install-binSCRIPTS install-data \
+ install-data-am install-data-recursive install-dist_pkgdataDATA \
install-dist_scriptDATA install-exec install-exec-am \
install-exec-recursive install-info-am install-recursive \
install-strip installcheck installcheck-am installcheck-local \
uninstall-dist_pkgdataDATA uninstall-dist_scriptDATA \
uninstall-info uninstall-recursive
+install-man:
+
+distclean: distclean-recursive
+ -rm -f config.status
+
+clean-am: clean-generic mostlyclean-am
+
+install-exec-am: install-binSCRIPTS
+
+install-data-am: install-dist_pkgdataDATA install-dist_scriptDATA \
+ install-info-am
+ @$(NORMAL_INSTALL)
+ $(MAKE) $(AM_MAKEFLAGS) install-data-hook
+
+distclean-am: clean-am distclean-generic distclean-tags
+
+dist-all: dist
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f config.status
+
+mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti
+
+mostlyclean: mostlyclean-recursive
+
+clean: clean-recursive
+
install-data-hook:
@$(POST_INSTALL)
# TRUE if we should always update files that we know about.
$force_missing = 0;
+# List of targets we must always output.
+# FIXME: Complete, and remove falsely required targets.
+my %required_targets =
+ (
+ 'all' => 1,
+ 'install' => 1,
+ 'install-data' => 1,
+ 'install-exec' => 1,
+
+ # FIXME: Not required, temporary hack until install-data and install-exec
+ # are factored.
+ 'install-data-am' => 1,
+ 'install-exec-am' => 1,
+
+ 'install-man' => 1,
+ );
# Variables filled during files scanning.
if (! defined $options{'no-installinfo'})
{
- push (@uninstall, 'uninstall-info');
push (@installdirs, '$(DESTDIR)$(infodir)');
- unshift (@install_data, 'install-info-am');
-
# Make sure documentation is made and installed first. Use
# $(INFO_DEPS), not 'info', because otherwise recursive makes
# get run twice during "make all".
$output_rules .= &file_contents ('mans',
&transform ('SECTION', $sect));
}
- &depend ('.PHONY', 'install-man', 'uninstall-man');
# We don't really need this, but we use it in case we ever want to
# support noinst_MANS.
if (! defined $options{'no-installman'})
{
- push (@install_data, 'install-man');
- push (@uninstall, 'uninstall-man');
push (@all, '$(MANS)');
}
}
$output_rules .= "install-binPROGRAMS: install-libLTLIBRARIES\n\n";
}
# Print definitions users can use.
- &do_one_merge_target ('install-exec', @install_exec);
- $output_rules .= "\n";
-
- &do_one_merge_target ('install-data', @install_data);
- $output_rules .= "\n";
+ &do_one_merge_target ('install-exec');
+ &do_one_merge_target ('install-data');
&do_one_merge_target ('install', 'all-am');
- &do_one_merge_target ('uninstall', @uninstall);
+ &do_one_merge_target ('uninstall');
&do_one_merge_target ('all', @all);
# relies on the fact that this doesn't add an extra \n at the end.
sub do_one_merge_target
{
- local ($name, @values) = @_;
+ my ($name, @values) = @_;
- if (&target_defined ($name . '-local'))
+ # Install hooks.
+ if (&target_defined ("$name-local"))
{
# User defined local form of target. So include it.
- push (@values, $name . '-local');
- &depend ('.PHONY', $name . '-local');
+ if (defined $dependencies{"$name-am"})
+ {
+ depend ("$name-am", "$name-local");
+ }
+ else
+ {
+ push (@values, "$name-local");
+ }
+ &depend ('.PHONY', "$name-local");
}
- &pretty_print_rule ($name . "-am:", "\t\t", @values);
+ # FIXME: Gross, should disapear once all these targets properly
+ # registered in %dependencies.
+ if (!defined $dependencies {"$name-am"})
+ {
+ &pretty_print_rule ("$name-am:", "\t\t", @values);
+ }
if ($name eq 'install')
{
# Special-case `install-am' to run install-exec-am and
}
elsif ($name eq 'install-exec' && &target_defined ('install-exec-hook'))
{
- $output_rules .= ("\t\@\$(NORMAL_INSTALL)\n"
- . "\t" . '$(MAKE) $(AM_MAKEFLAGS) install-exec-hook'
- . "\n");
+ $actions{'install-exec-am'} .=
+ ("\t\@\$(NORMAL_INSTALL)\n"
+ . "\t" . '$(MAKE) $(AM_MAKEFLAGS) install-exec-hook'
+ . "\n");
}
elsif ($name eq 'install-data' && &target_defined ('install-data-hook'))
{
- $output_rules .= ("\t\@\$(NORMAL_INSTALL)\n"
- . "\t" . '$(MAKE) $(AM_MAKEFLAGS) install-data-hook'
- . "\n");
+ $actions{'install-data-am'} .=
+ ("\t\@\$(NORMAL_INSTALL)\n"
+ . "\t" . '$(MAKE) $(AM_MAKEFLAGS) install-data-hook'
+ . "\n");
}
# To understand this special case, see handle_merge_targets.
{
# If there is nothing about this guy, skip it.
next
- unless @{$dependencies{$_}} || $actions{$_};
+ unless (@{$dependencies{$_}}
+ || $actions{$_}
+ || $required_targets{$_});
&pretty_print_rule ("$_:", "\t",
sort @{$dependencies{$_}});
$output_rules .= $actions{$_};
$AC_CANONICAL_HOST = 1;
$AC_CANONICAL_SYSTEM = 2;
- # Associative array of standard directory names. Entry is TRUE if
- # corresponding directory should be installed during
- # 'install-exec' phase.
- %exec_dir_p =
- ('bin', 1,
- 'sbin', 1,
- 'libexec', 1,
- 'data', 0,
- 'sysconf', 1,
- 'localstate', 1,
- 'lib', 1,
- 'info', 0,
- 'man', 0,
- 'include', 0,
- 'oldinclude', 0,
- 'pkgdata', 0,
- 'pkglib', 1,
- 'pkginclude', 0
- );
-
# Commonly found files we look for and automatically include in
# DISTFILES.
@common_files =
%dist_dirs = ();
# List of dependencies for the obvious targets.
- @install_data = ();
- @install_exec = ();
- @uninstall = ();
@installdirs = ();
@info = ();
%dependencies =
(
# Installing/uninstalling.
+ 'install-data-am' => [],
+ 'install-exec-am' => [],
'install-man' => [],
'uninstall-man' => [],
+ 'uninstall-am' => [],
# Cleaning.
'clean-am' => [],
# Sanity check over COMMAND, and complete it with global options.
&prog_error ("file_contents: $command")
if $command ne '' && substr ($command, -1) ne ';';
- $command .= &transform_cond ('CYGNUS' => $cygnus_mode,
- 'SHAR' => $options{'dist-shar'},
- 'BZIP2' => $options{'dist-bzip2'},
- 'ZIP' => $options{'dist-zip'},
- 'COMPRESS' => $options{'dist-tarZ'},
- 'CK-NEWS' => $options{'check-news'});
+ $command .=
+ &transform_cond ('CYGNUS' => $cygnus_mode,
+
+ 'SHAR' => $options{'dist-shar'},
+ 'BZIP2' => $options{'dist-bzip2'},
+ 'ZIP' => $options{'dist-zip'},
+ 'COMPRESS' => $options{'dist-tarZ'},
+
+ 'INSTALL-INFO' => !$options{'no-installinfo'},
+ 'INSTALL-MAN' => !$options{'no-installman'},
+ 'CK-NEWS' => $options{'check-news'});
# Swallow the file and applied the COMMAND.
my $file = $am_dir . '/' . $basename . '.am';
&file_contents ($file,
&transform ('DIR' => $X,
'NDIR' => $nodir_name)
- . &transform_cond ('BASE' => $strip_subdir)
+ . &transform_cond ('BASE' => $strip_subdir,
+ 'EXEC' => $X =~ /exec/)
. $ltxform
. $cygxform);
- push (@uninstall, 'uninstall-' . $X . $primary);
- &depend ('.PHONY', 'uninstall-' . $X . $primary);
push (@installdirs, '$(DESTDIR)$(' . $X . 'dir)');
- if (defined $exec_dir_p{$X} ? $exec_dir_p{$X} : ($X =~ /exec/))
- {
- push (@install_exec, 'install-' . $X . $primary);
- &depend ('.PHONY', 'install-' . $X . $primary);
- }
- else
- {
- push (@install_data, 'install-' . $X . $primary);
- &depend ('.PHONY', 'install-' . $X . $primary);
- }
}
}
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+?EXEC?.PHONY install-exec-am: install-@DIR@DATA
+?!EXEC?.PHONY install-data-am: install-@DIR@DATA
install-@DIR@DATA: $(@DIR@_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(@NDIR@dir)/$$f; \
done
+.PHONY uninstall-am: uninstall-@DIR@DATA
uninstall-@DIR@DATA:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_DATA)'; for p in $$list; do \
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+?EXEC?.PHONY install-exec-am: install-@DIR@HEADERS
+?!EXEC?.PHONY install-data-am: install-@DIR@HEADERS
install-@DIR@HEADERS: $(@DIR@_HEADERS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
$(INSTALL_HEADER) $$d$$p $(DESTDIR)$(@NDIR@dir)/$$f; \
done
+.PHONY uninstall-am: uninstall-@DIR@HEADERS
uninstall-@DIR@HEADERS:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_HEADERS)'; for p in $$list; do \
## automake - create Makefile.in from Makefile.am
-## Copyright 1998, 1999 Free Software Foundation, Inc.
+## Copyright 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
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+?EXEC?.PHONY install-exec-am: install-@DIR@JAVA
+?!EXEC?.PHONY install-data-am: install-@DIR@JAVA
install-@DIR@JAVA: class@DIR@.stamp
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
$(INSTALL_DATA) $$p $(DESTDIR)$(@NDIR@dir)/$$p; \
done
+.PHONY uninstall-am: uninstall-@DIR@JAVA
uninstall-@DIR@JAVA:
@$(NORMAL_UNINSTALL)
@for p in *.class; do \
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+?EXEC?.PHONY install-exec-am: install-@DIR@DATA
+?!EXEC?.PHONY install-data-am: install-@DIR@DATA
install-@DIR@DATA: $(@DIR@_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(@NDIR@dir)/$$f; \
done
+.PHONY uninstall-am: uninstall-@DIR@DATA
uninstall-@DIR@DATA:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_DATA)'; for p in $$list; do \
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+?EXEC?.PHONY install-exec-am: install-@DIR@HEADERS
+?!EXEC?.PHONY install-data-am: install-@DIR@HEADERS
install-@DIR@HEADERS: $(@DIR@_HEADERS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
$(INSTALL_HEADER) $$d$$p $(DESTDIR)$(@NDIR@dir)/$$f; \
done
+.PHONY uninstall-am: uninstall-@DIR@HEADERS
uninstall-@DIR@HEADERS:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_HEADERS)'; for p in $$list; do \
## automake - create Makefile.in from Makefile.am
-## Copyright 1998, 1999 Free Software Foundation, Inc.
+## Copyright 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
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+?EXEC?.PHONY install-exec-am: install-@DIR@JAVA
+?!EXEC?.PHONY install-data-am: install-@DIR@JAVA
install-@DIR@JAVA: class@DIR@.stamp
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
$(INSTALL_DATA) $$p $(DESTDIR)$(@NDIR@dir)/$$p; \
done
+.PHONY uninstall-am: uninstall-@DIR@JAVA
uninstall-@DIR@JAVA:
@$(NORMAL_UNINSTALL)
@for p in *.class; do \
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@LIBRARIES
install-@DIR@LIBRARIES: $(@DIR@_LIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@LIBRARIES
uninstall-@DIR@LIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+?EXEC?.PHONY install-exec-am: install-@DIR@LISP
+?!EXEC?.PHONY install-data-am: install-@DIR@LISP
install-@DIR@LISP: $(@DIR@_LISP) $(ELCFILES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else : ; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@LISP
uninstall-@DIR@LISP:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_LISP)'; for p in $$list; do \
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1997, 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
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@LTLIBRARIES
install-@DIR@LTLIBRARIES: $(@DIR@_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@LTLIBRARIES
uninstall-@DIR@LTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_LTLIBRARIES)'; for p in $$list; do \
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 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
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
NROFF = nroff
+
+## FIXME: This is not elegant: there is more than simply variables,
+## but we take advantage of the facts that these are factored dependencies,
+## and therefore will be output here, in the variable section.
+
+.PHONY: install-man uninstall-man
+?INSTALL-MAN?install-data-am: install-man
+?INSTALL-MAN?uninstall-am: uninstall-man
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@PROGRAMS
install-@DIR@PROGRAMS: $(@DIR@_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@PROGRAMS
uninstall-@DIR@PROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+.PHONY install-exec-am: install-@DIR@PYTHON
install-@DIR@PYTHON: $(@DIR@_PYTHON)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@DIR@dir)
## encoded in the actual files.
@PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(@DIR@dir) $(@DIR@_PYTHON)
+.PHONY uninstall-am: uninstall-@DIR@PYTHON
uninstall-@DIR@PYTHON:
@$(NORMAL_UNINSTALL)
list='$(@DIR@_PYTHON)'; for p in $$list; do \
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@SCRIPTS
install-@DIR@SCRIPTS: $(@DIR@_SCRIPTS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@SCRIPTS
uninstall-@DIR@SCRIPTS:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_SCRIPTS)'; for p in $$list; do \
## break a possible install-sh reference.
## Funny name due to --cygnus influence; we want to reserve
## `install-info' for the user.
+.PHONY: install-info-am
+?EXEC??INSTALL-INFO?insexec-data-am: install-info-am
+?!EXEC??INSTALL-INFO?install-data-am: install-info-am
install-info-am: $(INFO_DEPS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(infodir)
done; \
else : ; fi
+.PHONY: uninstall-info
+?INSTALL-INFO?uninstall-am: uninstall-info
uninstall-info:
$(PRE_UNINSTALL)
## Run two loops here so that we can handle PRE_UNINSTALL and
else :; fi); \
done
+.PHONY: dist-info
dist-info: $(INFO_DEPS)
list='$(INFO_DEPS)'; \
for base in $$list; do \
done; \
done
-.PHONY: install-info-am uninstall-info
-
## How to clean. The funny name is due to --cygnus influence; in
## Cygnus mode, `clean-info' is a target that users can use.
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@LIBRARIES
install-@DIR@LIBRARIES: $(@DIR@_LIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@LIBRARIES
uninstall-@DIR@LIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_LIBRARIES)'; for p in $$list; do \
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+?EXEC?.PHONY install-exec-am: install-@DIR@LISP
+?!EXEC?.PHONY install-data-am: install-@DIR@LISP
install-@DIR@LISP: $(@DIR@_LISP) $(ELCFILES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else : ; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@LISP
uninstall-@DIR@LISP:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_LISP)'; for p in $$list; do \
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 1997, 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
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@LTLIBRARIES
install-@DIR@LTLIBRARIES: $(@DIR@_LTLIBRARIES)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@LTLIBRARIES
uninstall-@DIR@LTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_LTLIBRARIES)'; for p in $$list; do \
check: check-am
installcheck-am:
installcheck: installcheck-am
-install-exec-am:
install-exec: install-exec-am
-
-install-data-am: install-m4dataDATA
install-data: install-data-am
-
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
-uninstall-am: uninstall-m4dataDATA
uninstall: uninstall-am
all-am: Makefile $(DATA)
install-strip:
@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
+uninstall-am: uninstall-m4dataDATA
+
+.PHONY: all all-am check 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-m4dataDATA install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ uninstall uninstall-am uninstall-m4dataDATA
+
+install-man:
distclean: distclean-am
+clean-am: clean-generic mostlyclean-am
+
+install-exec-am:
+
+install-data-am: install-m4dataDATA
+
distclean-am: clean-am distclean-generic
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-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-m4dataDATA install-strip installcheck \
- installcheck-am installdirs maintainer-clean \
- maintainer-clean-generic mostlyclean mostlyclean-generic \
- uninstall uninstall-am uninstall-m4dataDATA
+clean: clean-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
## automake - create Makefile.in from Makefile.am
-## Copyright 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright 1994, 1995, 1996, 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
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
NROFF = nroff
+
+## FIXME: This is not elegant: there is more than simply variables,
+## but we take advantage of the facts that these are factored dependencies,
+## and therefore will be output here, in the variable section.
+
+.PHONY: install-man uninstall-man
+?INSTALL-MAN?install-data-am: install-man
+?INSTALL-MAN?uninstall-am: uninstall-man
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@PROGRAMS
install-@DIR@PROGRAMS: $(@DIR@_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@PROGRAMS
uninstall-@DIR@PROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_PROGRAMS)'; for p in $$list; do \
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+.PHONY install-exec-am: install-@DIR@PYTHON
install-@DIR@PYTHON: $(@DIR@_PYTHON)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@DIR@dir)
## encoded in the actual files.
@PYTHON=$(PYTHON) $(py_compile) --basedir $(DESTDIR)$(@DIR@dir) $(@DIR@_PYTHON)
+.PHONY uninstall-am: uninstall-@DIR@PYTHON
uninstall-@DIR@PYTHON:
@$(NORMAL_UNINSTALL)
list='$(@DIR@_PYTHON)'; for p in $$list; do \
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
+
+.PHONY install-exec-am: install-@DIR@SCRIPTS
install-@DIR@SCRIPTS: $(@DIR@_SCRIPTS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(@NDIR@dir)
else :; fi; \
done
+.PHONY uninstall-am: uninstall-@DIR@SCRIPTS
uninstall-@DIR@SCRIPTS:
@$(NORMAL_UNINSTALL)
@list='$(@DIR@_SCRIPTS)'; for p in $$list; do \
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS =
+XFAIL_TESTS =
TESTS = \
acinclude.test \
aclocal.test \
install2.test \
installsh.test \
instdata.test \
+instdata2.test \
instexec.test \
insthook.test \
instman.test \
install2.test \
installsh.test \
instdata.test \
+instdata2.test \
instexec.test \
insthook.test \
instman.test \
check: check-am
installcheck-am:
installcheck: installcheck-am
-install-exec-am:
install-exec: install-exec-am
-
-install-data-am:
install-data: install-data-am
-
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
-uninstall-am:
uninstall: uninstall-am
all-am: Makefile
install-strip:
@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
+
+install-man:
distclean: distclean-am
+clean-am: clean-generic mostlyclean-am
+
+install-exec-am:
+
+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:
--- /dev/null
+#! /bin/sh
+
+# Test that installing under $exec_prefix is handled by install-exec.
+# Testing with headers for instance.
+
+. $srcdir/defs || exit 1
+
+cat >Makefile.am << \EOF
+inclexecdir = $(exec_prefix)/include
+inclexec_HEADERS = my-config.h
+
+incldatadir = $(prefix)/include
+incldata_HEADERS = my-data.h
+EOF
+
+set -e
+$AUTOMAKE
+grep '^install-exec-am: install-inclexecHEADERS$' Makefile.in
+grep '^install-data-am: install-incldataHEADERS$' Makefile.in
+
+exit 0
## break a possible install-sh reference.
## Funny name due to --cygnus influence; we want to reserve
## `install-info' for the user.
+.PHONY: install-info-am
+?EXEC??INSTALL-INFO?insexec-data-am: install-info-am
+?!EXEC??INSTALL-INFO?install-data-am: install-info-am
install-info-am: $(INFO_DEPS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(infodir)
done; \
else : ; fi
+.PHONY: uninstall-info
+?INSTALL-INFO?uninstall-am: uninstall-info
uninstall-info:
$(PRE_UNINSTALL)
## Run two loops here so that we can handle PRE_UNINSTALL and
else :; fi); \
done
+.PHONY: dist-info
dist-info: $(INFO_DEPS)
list='$(INFO_DEPS)'; \
for base in $$list; do \
done; \
done
-.PHONY: install-info-am uninstall-info
-
## How to clean. The funny name is due to --cygnus influence; in
## Cygnus mode, `clean-info' is a target that users can use.