* automake.in (&handle_merge_targets, &do_one_merge_target): Don't
[platform/upstream/automake.git] / lib / am / install.am
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright 2001 Free Software Foundation, Inc.
3
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
7 ## any later version.
8
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 ## 02111-1307, USA.
18
19 ## -------------------------- ##
20 ## Creating the installdirs.  ##
21 ## -------------------------- ##
22 ?SUBDIRS?.PHONY: installdirs installdirs-am installdirs-recursive
23 ?SUBDIRS?installdirs: installdirs-recursive
24 ?SUBDIRS?installdirs-am:
25 ?SUBDIRS??_am_installdirs?      $(mkinstalldirs) @_am_installdirs@
26
27 ?!SUBDIRS?.PHONY: installdirs
28 ?!SUBDIRS?installdirs:
29 ?!SUBDIRS??_am_installdirs?     $(mkinstalldirs) @_am_installdirs@
30
31
32 ## ----------------- ##
33 ## Install targets.  ##
34 ## ----------------- ##
35
36 .PHONY: install install-exec install-data uninstall
37
38 ?SUBDIRS?.PHONY: install-recursive install-exec-recursive install-data-recursive uninstall-recursive
39 ## FIXME: not ready: ?SUBDIRS?install: install-recursive
40 ?SUBDIRS?install-exec: install-exec-recursive
41 ?SUBDIRS?install-data: install-data-recursive
42 ?SUBDIRS?uninstall: uninstall-recursive
43
44 .PHONY: install-am install-exec-am install-data-am uninstall-am
45 ## FIXME: not ready: ?!SUBDIRS?install: install-am
46 ?!SUBDIRS?install-exec: install-exec-am
47 ?!SUBDIRS?install-data: install-data-am
48 ?!SUBDIRS?uninstall: uninstall-am
49
50 ## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
51 ## in subdirectories, so never set it to a value relative to the top
52 ## directory.
53 .PHONY: install-strip
54 install-strip:
55 ## Use double quotes here because we might need to interpolate some
56 ## backquotes at runtime.
57         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
58           INSTALL_PROGRAM_ENV='$(INSTALL_STRIP_PROGRAM_ENV)' install