1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1998, 1999, 2001, 2002, 2003, 2004, 2006, 2007
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 3, 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 %DIR%LIBRARIES_INSTALL = %BASE?$(INSTALL_DATA):$(install_sh_DATA)%
29 .PHONY install-%EXEC?exec:data%-am: install-%DIR%LIBRARIES
30 install-%DIR%LIBRARIES: $(%DIR%_LIBRARIES)
32 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%_LIBRARIES)'; for p in $$list; do \
36 if test -f $$p; then \
37 ## Compute basename of source file. Unless this is a nobase_ target, we
38 ## want to install 'python/foo.py' as '$(DESTDIR)$(%NDIR%dir)/foo.yo',
39 ## not '$(DESTDIR)$(%NDIR%dir)/python/foo.yo'.
40 %BASE?$(am__strip_dir):f=$$p;% \
41 echo " $(%DIR%LIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
42 $(%DIR%LIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(%NDIR%dir)/$$f"; \
45 ## We do two loops here so that $(POST_INSTALL) can be empty. If we
46 ## merge the two loops, we get a syntax error from sh. Anyway, having
47 ## $(POST_INSTALL) in the middle of the loop essentially renders it
48 ## useless; sh never actually executes this command. Read the GNU
49 ## Standards for a little enlightenment on this.
51 @list='$(%DIR%_LIBRARIES)'; for p in $$list; do \
52 if test -f $$p; then \
53 %BASE?$(am__strip_dir):f=$$p;% \
54 ## Must ranlib after installing because mod time changes.
55 echo " $(RANLIB) '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
56 $(RANLIB) "$(DESTDIR)$(%NDIR%dir)/$$f"; \
67 .PHONY uninstall-am: uninstall-%DIR%LIBRARIES
68 uninstall-%DIR%LIBRARIES:
70 @list='$(%DIR%_LIBRARIES)'; for p in $$list; do \
71 %BASE?$(am__strip_dir):f=$$p;% \
72 echo " rm -f '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
73 rm -f "$(DESTDIR)$(%NDIR%dir)/$$f"; \
82 .PHONY clean-am: clean-%DIR%LIBRARIES
84 -test -z "$(%DIR%_LIBRARIES)" || rm -f $(%DIR%_LIBRARIES)