1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994-2024 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 <https://www.gnu.org/licenses/>.
26 am__installdirs += "$(DESTDIR)$(%NDIR%dir)"
27 ?EXEC?.PHONY install-exec-am: install-%DIR%%PRIMARY%
28 ?!EXEC?.PHONY install-data-am: install-%DIR%%PRIMARY%
29 install-%DIR%%PRIMARY%: $(%DIR%_%PRIMARY%)
32 ## Funny invocation because Makefile variable can be empty, leading to
33 ## a syntax error in sh.
34 @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
35 if test -n "$$list"; then \
36 echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
37 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
40 ## A file can be in the source directory or the build directory.
41 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
42 ## If the _%PRIMARY% variable has an entry like foo/bar, install it as
43 ## $(destdir)/bar, not $(destdir)/foo/bar. The user can make a
44 ## new dir variable or use a nobase_ target for the latter case.
46 done | $(am__base_list) | \
47 while read files; do \
48 echo " $(INSTALL_%ONE_PRIMARY%) $$files '$(DESTDIR)$(%NDIR%dir)'"; \
49 $(INSTALL_%ONE_PRIMARY%) $$files "$(DESTDIR)$(%NDIR%dir)" || exit $$?; \
52 @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
53 if test -n "$$list"; then \
54 echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)'"; \
55 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)" || exit 1; \
57 $(am__nobase_list) | while read dir files; do \
58 xfiles=; for file in $$files; do \
59 if test -f "$$file"; then xfiles="$$xfiles $$file"; \
60 else xfiles="$$xfiles $(srcdir)/$$file"; fi; done; \
61 test -z "$$xfiles" || { \
62 test "x$$dir" = x. || { \
63 echo " $(MKDIR_P) '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
64 $(MKDIR_P) "$(DESTDIR)$(%NDIR%dir)/$$dir"; }; \
65 echo " $(INSTALL_%ONE_PRIMARY%) $$xfiles '$(DESTDIR)$(%NDIR%dir)/$$dir'"; \
66 $(INSTALL_%ONE_PRIMARY%) $$xfiles "$(DESTDIR)$(%NDIR%dir)/$$dir" || exit $$?; }; \
77 .PHONY uninstall-am: uninstall-%DIR%%PRIMARY%
78 uninstall-%DIR%%PRIMARY%:
80 @list='$(%DIR%_%PRIMARY%)'; test -n "$(%NDIR%dir)" || list=; \
81 ?BASE? files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
82 ?!BASE? $(am__nobase_strip_setup); files=`$(am__nobase_strip)`; \
83 dir='$(DESTDIR)$(%NDIR%dir)'; $(am__uninstall_files_from_dir)
99 DIST_COMMON += %DISTVAR%