source: trunk/essentials/sys-devel/automake-1.8/lib/am/install.am

Last change on this file was 3118, checked in by bird, 18 years ago

automake 1.8.5

File size: 3.6 KB
Line 
1## automake - create Makefile.in from Makefile.am
2## Copyright (C) 2001, 2002, 2003, 2004 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## installdirs -- Creating the installdirs. ##
21## ----------------------------------------- ##
22
23## The reason we loop over %am__installdirs% (instead of simply running
24## `$(mkdir_p) %am__installdirs%') is that directories variable such as
25## `"$(DESTDIR)$(mydir)"' can potentially expand to `""' if `$(mydir)'
26## is conditionally defined. BTW, those directories are quoted in
27## order to support installation paths with spaces.
28
29if %?SUBDIRS%
30.PHONY: installdirs installdirs-am
31RECURSIVE_TARGETS += installdirs-recursive
32installdirs: installdirs-recursive
33installdirs-am:%installdirs-local%
34?am__installdirs? for dir in %am__installdirs%; do \
35?am__installdirs? test -z "$$dir" || $(mkdir_p) "$$dir"; \
36?am__installdirs? done
37else !%?SUBDIRS%
38.PHONY: installdirs
39installdirs:%installdirs-local%
40?am__installdirs? for dir in %am__installdirs%; do \
41?am__installdirs? test -z "$$dir" || $(mkdir_p) "$$dir"; \
42?am__installdirs? done
43endif !%?SUBDIRS%
44
45
46## ----------------- ##
47## Install targets. ##
48## ----------------- ##
49
50.PHONY: install install-exec install-data uninstall
51.PHONY: install-exec-am install-data-am uninstall-am
52
53if %?SUBDIRS%
54RECURSIVE_TARGETS += install-data-recursive install-exec-recursive \
55 install-recursive uninstall-recursive
56install:%maybe_BUILT_SOURCES% install-recursive
57install-exec: install-exec-recursive
58install-data: install-data-recursive
59uninstall: uninstall-recursive
60else !%?SUBDIRS%
61install:%maybe_BUILT_SOURCES% install-am
62install-exec: install-exec-am
63install-data: install-data-am
64uninstall: uninstall-am
65endif !%?SUBDIRS%
66
67.PHONY: install-am
68install-am: all-am
69 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
70
71
72.PHONY: installcheck
73?SUBDIRS?installcheck: installcheck-recursive
74?!SUBDIRS?installcheck: installcheck-am
75?!SUBDIRS?.PHONY: installcheck-am
76?!SUBDIRS?installcheck-am:
77
78## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
79## in subdirectories, so never set it to a value relative to the top
80## directory.
81.PHONY: install-strip
82install-strip:
83## Beware that they are two variables used to install programs:
84## INSTALL_PROGRAM is used for ordinary *_PROGRAMS
85## install_sh_PROGRAM is used for nobase_*_PROGRAMS (because install-sh
86## creates directories)
87## It's OK to override both with INSTALL_STRIP_PROGRAM, because
88## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rational).
89##
90## Use double quotes here because we might need to interpolate some
91## backquotes at runtime.
92 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
93 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
94 `test -z '$(STRIP)' || \
95 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
Note: See TracBrowser for help on using the repository browser.