1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2004,
3 ## 2005, 2006, 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%LTLIBRARIES
29 install-%DIR%LTLIBRARIES: $(%DIR%_LTLIBRARIES)
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%_LTLIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
36 list2=; for p in $$list; do \
37 if test -f $$p; then \
38 list2="$$list2 $$p"; \
41 test -z "$$list2" || { \
42 ## Note that we explicitly set the libtool mode. This avoids any lossage
43 ## if the program doesn't have a name that libtool expects.
44 ## Use INSTALL and not INSTALL_DATA because libtool knows the right
45 ## permissions to use.
46 ?LIBTOOL? echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(%NDIR%dir)'"; \
47 ?LIBTOOL? $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(%NDIR%dir)"; \
48 ?!LIBTOOL? echo " $(INSTALL) $(INSTALL_STRIP_FLAG) $$list '$(DESTDIR)$(%NDIR%dir)'"; \
49 ?!LIBTOOL? $(INSTALL) $(INSTALL_STRIP_FLAG) $$list "$(DESTDIR)$(%NDIR%dir)"; \
52 @list='$(%DIR%_LTLIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
53 for p in $$list; do if test -f "$$p"; then echo "$$p $$p"; else :; fi; done | \
54 sed '/ .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
55 $(AWK) 'BEGIN { cur = "." } \
56 { if ($$2 == cur) { files = files " " $$1 } \
57 else { print cur, files; files = $$1; cur = $$2 } } \
58 END { print cur, files }' | \
59 while read dir files; do \
60 test -z "$$files" || { \
61 test "x$$dir" = x. || { \
62 echo "$(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
63 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)/$$dir"; }; \
64 ## Note that we explicitly set the libtool mode. This avoids any lossage
65 ## if the program doesn't have a name that libtool expects.
66 ## Use INSTALL and not INSTALL_DATA because libtool knows the right
67 ## permissions to use.
68 ?LIBTOOL? echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$files '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
69 ?LIBTOOL? $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$files "$(DESTDIR)$(%NDIR%dir)/$$dir" || exit $$?; \
70 ?!LIBTOOL? echo " $(INSTALL) $(INSTALL_STRIP_FLAG) $$files '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
71 ?!LIBTOOL? $(INSTALL) $(INSTALL_STRIP_FLAG) $$files "$(DESTDIR)$(%NDIR%dir)/$$dir" || exit $$?; \
83 .PHONY uninstall-am: uninstall-%DIR%LTLIBRARIES
84 uninstall-%DIR%LTLIBRARIES:
86 @list='$(%DIR%_LTLIBRARIES)'; test -n "$(%NDIR%dir)" || list=; \
88 %BASE?$(am__strip_dir):f=$$p;% \
89 ?LIBTOOL? echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
90 ?LIBTOOL? $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(%NDIR%dir)/$$f"; \
91 ?!LIBTOOL? echo " rm -f '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
92 ?!LIBTOOL? rm -f "$(DESTDIR)$(%NDIR%dir)/$$f"; \
101 .PHONY clean-am: clean-%DIR%LTLIBRARIES
102 clean-%DIR%LTLIBRARIES:
103 -test -z "$(%DIR%_LTLIBRARIES)" || rm -f $(%DIR%_LTLIBRARIES)
104 ## `so_locations' files are created by some linkers (IRIX, OSF) when
105 ## building a shared object. Libtool places these files in the
106 ## directory where the shared object is created.
107 @list='$(%DIR%_LTLIBRARIES)'; \
108 locs=`for p in $$list; do echo $$p; done | \
109 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
111 test -z "$$locs" || { \
112 echo rm -f $${locs}; \