| 1 | ## automake - create Makefile.in from Makefile.am
|
|---|
| 2 | ## Copyright (C) 1994, 1995, 1996, 1998, 1999, 2001, 2003, 2004
|
|---|
| 3 | ## Free Software Foundation, Inc.
|
|---|
| 4 |
|
|---|
| 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)
|
|---|
| 8 | ## any later version.
|
|---|
| 9 |
|
|---|
| 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.
|
|---|
| 14 |
|
|---|
| 15 | ## You should have received a copy of the GNU General Public License
|
|---|
| 16 | ## along with this program; if not, write to the Free Software
|
|---|
| 17 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|---|
| 18 | ## 02110-1301, USA.
|
|---|
| 19 |
|
|---|
| 20 | if %?INSTALL%
|
|---|
| 21 | include inst-vars.am
|
|---|
| 22 | endif %?INSTALL%
|
|---|
| 23 |
|
|---|
| 24 | ## ------------ ##
|
|---|
| 25 | ## Installing. ##
|
|---|
| 26 | ## ------------ ##
|
|---|
| 27 |
|
|---|
| 28 | if %?INSTALL%
|
|---|
| 29 | am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
|
|---|
| 30 | ?BASE?%DIR%%PRIMARY%_INSTALL = $(INSTALL_%ONE_PRIMARY%)
|
|---|
| 31 | ?!BASE?%DIR%%PRIMARY%_INSTALL = $(install_sh_DATA)
|
|---|
| 32 | ?EXEC?.PHONY install-exec-am: install-%DIR%%PRIMARY%
|
|---|
| 33 | ?!EXEC?.PHONY install-data-am: install-%DIR%%PRIMARY%
|
|---|
| 34 | install-%DIR%%PRIMARY%: $(%DIR%_%PRIMARY%)
|
|---|
| 35 | @$(NORMAL_INSTALL)
|
|---|
| 36 | test -z "$(%NDIR%dir)" || $(mkdir_p) "$(DESTDIR)$(%NDIR%dir)"
|
|---|
| 37 | ?!BASE? @$(am__vpath_adj_setup) \
|
|---|
| 38 | ## Funny invocation because Makefile variable can be empty, leading to
|
|---|
| 39 | ## a syntax error in sh.
|
|---|
| 40 | ?!BASE? list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
|
|---|
| 41 | ?BASE? @list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
|
|---|
| 42 | ## A file can be in the source directory or the build directory.
|
|---|
| 43 | if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
|---|
| 44 | ## If the _%PRIMARY% variable has an entry like foo/bar, install it as
|
|---|
| 45 | ## $(destdir)/bar, not $(destdir)/foo/bar. The user can make a
|
|---|
| 46 | ## new dir variable or use a nobase_ target for the latter case.
|
|---|
| 47 | ?BASE? f=$(am__strip_dir) \
|
|---|
| 48 | ?!BASE? $(am__vpath_adj) \
|
|---|
| 49 | echo " $(%DIR%%PRIMARY%_INSTALL) '$$d$$p' '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
|
|---|
| 50 | $(%DIR%%PRIMARY%_INSTALL) "$$d$$p" "$(DESTDIR)$(%NDIR%dir)/$$f"; \
|
|---|
| 51 | done
|
|---|
| 52 | endif %?INSTALL%
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | ## -------------- ##
|
|---|
| 56 | ## Uninstalling. ##
|
|---|
| 57 | ## -------------- ##
|
|---|
| 58 |
|
|---|
| 59 | if %?INSTALL%
|
|---|
| 60 | .PHONY uninstall-am: uninstall-%DIR%%PRIMARY%
|
|---|
| 61 | uninstall-%DIR%%PRIMARY%:
|
|---|
| 62 | @$(NORMAL_UNINSTALL)
|
|---|
| 63 | ?!BASE? @$(am__vpath_adj_setup) \
|
|---|
| 64 | ?!BASE? list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
|
|---|
| 65 | ?BASE? @list='$(%DIR%_%PRIMARY%)'; for p in $$list; do \
|
|---|
| 66 | ?BASE? f=$(am__strip_dir) \
|
|---|
| 67 | ?!BASE? $(am__vpath_adj) \
|
|---|
| 68 | echo " rm -f '$(DESTDIR)$(%NDIR%dir)/$$f'"; \
|
|---|
| 69 | rm -f "$(DESTDIR)$(%NDIR%dir)/$$f"; \
|
|---|
| 70 | done
|
|---|
| 71 | endif %?INSTALL%
|
|---|
| 72 |
|
|---|
| 73 |
|
|---|
| 74 | ## ---------- ##
|
|---|
| 75 | ## Cleaning. ##
|
|---|
| 76 | ## ---------- ##
|
|---|
| 77 |
|
|---|
| 78 | ## Nothing.
|
|---|
| 79 |
|
|---|
| 80 |
|
|---|
| 81 | ## -------------- ##
|
|---|
| 82 | ## Distributing. ##
|
|---|
| 83 | ## -------------- ##
|
|---|
| 84 |
|
|---|
| 85 | if %?DIST%
|
|---|
| 86 | DIST_COMMON += %DISTVAR%
|
|---|
| 87 | endif %?DIST%
|
|---|