1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 2001, 2002, 2003, 2004, 2006, 2008, 2009, 2010 Free Software
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
18 ## ----------------------------------------- ##
19 ## installdirs -- Creating the installdirs. ##
20 ## ----------------------------------------- ##
22 ## The reason we loop over %am__installdirs% (instead of simply running
23 ## `$(MKDIR_P) %am__installdirs%') is that directories variable such as
24 ## `"$(DESTDIR)$(mydir)"' can potentially expand to `""' if `$(mydir)'
25 ## is conditionally defined. BTW, those directories are quoted in
26 ## order to support installation paths with spaces.
29 .PHONY: installdirs installdirs-am
30 RECURSIVE_TARGETS += installdirs-recursive
31 installdirs: installdirs-recursive
32 installdirs-am:%installdirs-local%
33 ?am__installdirs? for dir in %am__installdirs%; do \
34 ?am__installdirs? test -z "$$dir" || $(MKDIR_P) "$$dir"; \
35 ?am__installdirs? done
38 installdirs:%installdirs-local%
39 ?am__installdirs? for dir in %am__installdirs%; do \
40 ?am__installdirs? test -z "$$dir" || $(MKDIR_P) "$$dir"; \
41 ?am__installdirs? done
45 ## ----------------- ##
46 ## Install targets. ##
47 ## ----------------- ##
49 .PHONY: install install-exec install-data uninstall
50 .PHONY: install-exec-am install-data-am uninstall-am
53 RECURSIVE_TARGETS += install-data-recursive install-exec-recursive \
54 install-recursive uninstall-recursive
55 install:%maybe_BUILT_SOURCES% install-recursive
56 install-exec: install-exec-recursive
57 install-data: install-data-recursive
58 uninstall: uninstall-recursive
60 install:%maybe_BUILT_SOURCES% install-am
61 install-exec: install-exec-am
62 install-data: install-data-am
63 uninstall: uninstall-am
66 if %?maybe_BUILT_SOURCES%
68 endif %?maybe_BUILT_SOURCES%
70 .MAKE .PHONY: install-am
72 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
76 ?SUBDIRS?installcheck: installcheck-recursive
77 ?!SUBDIRS?installcheck: installcheck-am
78 ?!SUBDIRS?.PHONY: installcheck-am
79 ?!SUBDIRS?installcheck-am:
81 ## If you ever modify this, keep in mind that INSTALL_PROGRAM is used
82 ## in subdirectories, so never set it to a value relative to the top
84 .MAKE .PHONY: install-strip
86 ## Beware that there are two variables used to install programs:
87 ## INSTALL_PROGRAM is used for ordinary *_PROGRAMS
88 ## install_sh_PROGRAM is used for nobase_*_PROGRAMS (because install-sh
89 ## creates directories)
90 ## It's OK to override both with INSTALL_STRIP_PROGRAM, because
91 ## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rationale).
93 ## Use double quotes for the *_PROGRAM settings because we might need to
94 ## interpolate some backquotes at runtime.
96 ## The case for empty $(STRIP) is separate so that it is quoted correctly for
97 ## multiple words, but does not expand to an empty words if STRIP is empty.
98 if test -z '$(STRIP)'; then \
99 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
100 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
103 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
104 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
105 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \