1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1998, 1999, 2001, 2003, 2004, 2006,
3 ## 2007, 2008, 2009 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)
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/>.
27 am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
28 .PHONY install-%EXEC?exec:data%-am: install-%DIR%%PRIMARY%
29 install-%DIR%%PRIMARY%: $(%DIR%_%PRIMARY%)
31 test -z "$(%NDIR%dir)" || $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)"
33 ## Funny invocation because Makefile variable can be empty, leading to
34 ## a syntax error in sh.
35 @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
37 ## A file can be in the source directory or the build directory.
38 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
39 ## If the _%PRIMARY% variable has an entry like foo/bar, install it as
40 ## $(destdir)/bar, not $(destdir)/foo/bar. The user can make a
41 ## new dir variable or use a nobase_ target for the latter case.
43 done | $(am__base_list) | \
44 while read files; do \
45 echo " $(INSTALL_%ONE_PRIMARY%) $$files '$(DESTDIR)$(%NDIR%dir)'"; \
46 $(INSTALL_%ONE_PRIMARY%) $$files "$(DESTDIR)$(%NDIR%dir)" || exit $$?; \
49 @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
50 $(am__nobase_list) | while read dir files; do \
51 xfiles=; for file in $$files; do \
52 if test -f "$$file"; then xfiles="$$xfiles $$file"; \
53 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
54 test -z "$$xfiles" || { \
55 test "x$$dir" = x. || { \
56 echo "$(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
57 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)/$$dir"; }; \
58 echo " $(INSTALL_%ONE_PRIMARY%) $$xfiles '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
59 $(INSTALL_%ONE_PRIMARY%) $$xfiles "$(DESTDIR)$(%NDIR%dir)/$$dir" || exit $$?; }; \
70 .PHONY uninstall-am: uninstall-%DIR%%PRIMARY%
71 uninstall-%DIR%%PRIMARY%:
73 @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
74 ?BASE? files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
75 ?!BASE? $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
76 test -n "$$files" || exit 0; \
77 echo " ( cd '$(DESTDIR)$(%NDIR%dir)' && rm -f" $$files ")"; \
78 cd "$(DESTDIR)$(%NDIR%dir)" && rm -f $$files
94 DIST_COMMON += %DISTVAR%