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

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

automake 1.7.9

File size: 3.0 KB
Line 
1## automake - create Makefile.in from Makefile.am
2## Copyright (C) 2001, 2002, 2003 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:%installdirs-local%
25?SUBDIRS??am__installdirs? $(mkinstalldirs) %am__installdirs%
26
27?!SUBDIRS?.PHONY: installdirs
28?!SUBDIRS?installdirs:%installdirs-local%
29?!SUBDIRS??am__installdirs? $(mkinstalldirs) %am__installdirs%
30
31
32## ----------------- ##
33## Install targets. ##
34## ----------------- ##
35
36.PHONY: install install-exec install-data uninstall
37.PHONY: install-exec-am install-data-am uninstall-am
38
39if %?SUBDIRS%
40.PHONY: install-recursive install-exec-recursive install-data-recursive uninstall-recursive
41install:%maybe_BUILT_SOURCES% install-recursive
42install-exec: install-exec-recursive
43install-data: install-data-recursive
44uninstall: uninstall-recursive
45else !%?SUBDIRS%
46install:%maybe_BUILT_SOURCES% install-am
47install-exec: install-exec-am
48install-data: install-data-am
49uninstall: uninstall-am
50endif !%?SUBDIRS%
51
52.PHONY: install-am
53install-am: all-am
54 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
55
56
57.PHONY: installcheck
58?SUBDIRS?installcheck: installcheck-recursive
59?!SUBDIRS?installcheck: installcheck-am
60?!SUBDIRS?.PHONY: installcheck-am
61?!SUBDIRS?installcheck-am:
62
63## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
64## in subdirectories, so never set it to a value relative to the top
65## directory.
66.PHONY: install-strip
67install-strip:
68## Beware that they are two variables used to install programs:
69## INSTALL_PROGRAM is used for ordinary *_PROGRAMS
70## install_sh_PROGRAM is used for nobase_*_PROGRAMS (because install-sh
71## creates directories)
72## It's OK to override both with INSTALL_STRIP_PROGRAM, because
73## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rational).
74##
75## Use double quotes here because we might need to interpolate some
76## backquotes at runtime.
77 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
78 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
79 `test -z '$(STRIP)' || \
80 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
Note: See TracBrowser for help on using the repository browser.