Update automake to version 1.10
[msysgit.git] / share / automake-1.10 / am / data.am
bloba35d71547c9762c26e5a360b53a7f84fa04c50a1
1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1998, 1999, 2001, 2003, 2004, 2006
3 ## Free Software Foundation, Inc.
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)
8 ## any later version.
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, write to the Free Software
17 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 ## 02110-1301, USA.
20 if %?INSTALL%
21 include inst-vars.am
22 endif %?INSTALL%
24 ## ------------ ##
25 ## Installing.  ##
26 ## ------------ ##
28 if %?INSTALL%
29 am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
30 ?BASE?%DIR%%PRIMARY%_INSTALL = $(INSTALL_%ONE_PRIMARY%)
31 ?!BASE?%DIR%%PRIMARY%_INSTALL = $(install_sh_DATA)
32 ?EXEC?.PHONY install-exec-am: install-%DIR%%PRIMARY%
33 ?!EXEC?.PHONY install-data-am: install-%DIR%%PRIMARY%
34 install-%DIR%%PRIMARY%: $(%DIR%_%PRIMARY%)
35         @$(NORMAL_INSTALL)
36         test -z "$(%NDIR%dir)" || $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)"
37 ?!BASE? @$(am__vpath_adj_setup) \
38 ## Funny invocation because Makefile variable can be empty, leading to
39 ## a syntax error in sh.
40 ?!BASE? list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
41 ?BASE?  @list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
42 ## A file can be in the source directory or the build directory.
43           if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
44 ## If the _%PRIMARY% variable has an entry like foo/bar, install it as
45 ## $(destdir)/bar, not $(destdir)/foo/bar.  The user can make a
46 ## new dir variable or use a nobase_ target for the latter case.
47 ?BASE?    f=$(am__strip_dir) \
48 ?!BASE?   $(am__vpath_adj) \
49           echo " $(%DIR%%PRIMARY%_INSTALL) '$$d$$p' '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
50           $(%DIR%%PRIMARY%_INSTALL) "$$d$$p" "$(DESTDIR)$(%NDIR%dir)/$$f"; \
51         done
52 endif %?INSTALL%
55 ## -------------- ##
56 ## Uninstalling.  ##
57 ## -------------- ##
59 if %?INSTALL%
60 .PHONY uninstall-am: uninstall-%DIR%%PRIMARY%
61 uninstall-%DIR%%PRIMARY%:
62         @$(NORMAL_UNINSTALL)
63 ?!BASE? @$(am__vpath_adj_setup) \
64 ?!BASE? list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
65 ?BASE?  @list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
66 ?BASE?    f=$(am__strip_dir) \
67 ?!BASE?   $(am__vpath_adj) \
68           echo " rm -f '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
69           rm -f "$(DESTDIR)$(%NDIR%dir)/$$f"; \
70         done
71 endif %?INSTALL%
74 ## ---------- ##
75 ## Cleaning.  ##
76 ## ---------- ##
78 ## Nothing.
81 ## -------------- ##
82 ## Distributing.  ##
83 ## -------------- ##
85 if %?DIST%
86 DIST_COMMON += %DISTVAR%
87 endif %?DIST%