## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
-## FIXME: this should probably be moved to header-vars.am ...
-am__create_installdir = $(if $(and $1,$^),$(MKDIR_P) '$(DESTDIR)$1',@:)
+# FIXME: this should probably be generalized and moved to header-vars.mk
+am.texi.create-installdir = $(if $(and $1,$^),$(MKDIR_P) '$(DESTDIR)$1',@:)
## ---------- ##
.am/install-html: $(HTMLS)
@$(NORMAL_INSTALL)
- $(call am__create_installdir,$(htmldir))
+ $(call am.texi.create-installdir,$(htmldir))
@list=''; \
$(if $(and $(HTMLS),$(htmldir)),$(foreach i,$(HTMLS), \
p=$(call am.vpath.rewrite,$i); \
.am/install-info: $(INFO_DEPS)
@$(NORMAL_INSTALL)
- $(call am__create_installdir,$(infodir))
+ $(call am.texi.create-installdir,$(infodir))
@list='$(and $(infodir),$^)'; test -n "$$list" || exit 0; \
for file in $$list; do \
for ifile in $$file $$file-[0-9] $$file-[0-9][0-9]; do \
.am/install-dvi: $(DVIS)
@$(NORMAL_INSTALL)
- $(call am__create_installdir,$(dvidir))
+ $(call am.texi.create-installdir,$(dvidir))
@list='$(and $(dvidir),$^)'; test -n "$$list" || exit 0; \
for p in $$list; do echo "$$p"; done | $(am__base_list) | \
while read files; do \
.am/install-pdf: $(PDFS)
@$(NORMAL_INSTALL)
- $(call am__create_installdir,$(pdfdir))
+ $(call am.texi.create-installdir,$(pdfdir))
@list='$(and $(pdfdir),$^)'; test -n "$$list" || exit 0; \
for p in $$list; do echo "$$p"; done | $(am__base_list) | \
while read files; do \
.am/install-ps: $(PSS)
@$(NORMAL_INSTALL)
- $(call am__create_installdir,$(psdir))
+ $(call am.texi.create-installdir,$(psdir))
@list='$(and $(psdir),$^)'; test -n "$$list" || exit 0; \
for p in $$list; do echo "$$p"; done | $(am__base_list) | \
while read files; do \