1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994-2012 Free Software Foundation, Inc.
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)
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.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
26 am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
27 .PHONY install-%EXEC?exec:data%-am: install-%DIR%LIBRARIES
28 install-%DIR%LIBRARIES: $(%DIR%_LIBRARIES)
31 ## Funny invocation because Makefile variable can be empty, leading to
32 ## a syntax error in sh.
33 @list='$(%DIR%_LIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
34 list2=; for p in $$list; do \
35 if test -f $$p; then \
36 list2="$$list2 $$p"; \
39 test -z "$$list2" || { \
40 echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
41 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
42 echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(%NDIR%dir)'"; \
43 $(INSTALL_DATA) $$list2 "$(DESTDIR)$(%NDIR%dir)" || exit $$?; }
45 ## Funny invocation because Makefile variable can be empty, leading to
46 ## a syntax error in sh.
47 @list='$(%DIR%_LIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
48 if test -n "$$list"; then \
49 echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
50 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
52 $(am__nobase_list) | while read dir files; do \
53 xfiles=; for p in $$files; do \
54 if test -f "$$p"; then xfiles="$$xfiles $$p"; else :; fi; done; \
55 test -z "$$xfiles" || { \
56 test "x$$dir" = x. || { \
57 echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
58 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)/$$dir"; }; \
59 echo " $(INSTALL_DATA) $$xfiles '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
60 $(INSTALL_DATA) $$xfiles "$(DESTDIR)$(%NDIR%dir)/$$dir" || exit $$?; }; \
63 ## We do two loops here so that $(POST_INSTALL) can be empty. If we
64 ## merge the two loops, we get a syntax error from sh. Anyway, having
65 ## $(POST_INSTALL) in the middle of the loop essentially renders it
66 ## useless; sh never actually executes this command. Read the GNU
67 ## Standards for a little enlightenment on this.
69 @list='$(%DIR%_LIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
71 if test -f $$p; then \
72 %BASE?$(am__strip_dir):f=$$p;% \
73 ## Must ranlib after installing because mod time changes.
74 ## cd to target directory because AIX ranlib messes up with whitespace
76 echo " ( cd '$(DESTDIR)$(%NDIR%dir)' && $(RANLIB) $$f )"; \
77 ( cd "$(DESTDIR)$(%NDIR%dir)" && $(RANLIB) $$f ) || exit $$?; \
88 .PHONY uninstall-am: uninstall-%DIR%LIBRARIES
89 uninstall-%DIR%LIBRARIES:
91 @list='$(%DIR%_LIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
92 ?BASE? files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
93 ?!BASE? $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
94 dir='$(DESTDIR)$(%NDIR%dir)'; $(am__uninstall_files_from_dir)
102 .PHONY clean-am: clean-%DIR%LIBRARIES
103 clean-%DIR%LIBRARIES:
104 -test -z "$(%DIR%_LIBRARIES)" || rm -f $(%DIR%_LIBRARIES)