Reword the copyright notices to match what's suggested in GPLv3.
[automake/plouj.git] / lib / am / libs.am
blobaecee2b0e64c0c19e4de0eefe6512ea8e62d6cd0
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)
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, see <http://www.gnu.org/licenses/>.
18 if %?INSTALL%
19 include inst-vars.am
20 endif %?INSTALL%
22 ## ------------ ##
23 ## Installing.  ##
24 ## ------------ ##
26 if %?INSTALL%
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)
31         @$(NORMAL_INSTALL)
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"; \
43           else :; fi; \
44         done
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.
50         @$(POST_INSTALL)
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"; \
57           else :; fi; \
58         done
59 endif %?INSTALL%
62 ## -------------- ##
63 ## Uninstalling.  ##
64 ## -------------- ##
66 if %?INSTALL%
67 .PHONY uninstall-am: uninstall-%DIR%LIBRARIES
68 uninstall-%DIR%LIBRARIES:
69         @$(NORMAL_UNINSTALL)
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"; \
74         done
75 endif %?INSTALL%
78 ## ---------- ##
79 ## Cleaning.  ##
80 ## ---------- ##
82 .PHONY clean-am: clean-%DIR%LIBRARIES
83 clean-%DIR%LIBRARIES:
84         -test -z "$(%DIR%_LIBRARIES)" || rm -f $(%DIR%_LIBRARIES)