summaryrefslogtreecommitdiff
path: root/texinfos.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-03-20 20:09:08 +0000
committerTom Tromey <tromey@redhat.com>1998-03-20 20:09:08 +0000
commit660081d8f479b989d62bb256c09cb2c786d0fb1e (patch)
tree035196169689e5b2072e8bd1f8c4b09884aa0517 /texinfos.am
parent884d498049b1c004ca69e9560e02ad8f47db4371 (diff)
downloadautomake-660081d8f479b989d62bb256c09cb2c786d0fb1e.tar.gz
added DESTDIR support
Diffstat (limited to 'texinfos.am')
-rw-r--r--texinfos.am14
1 files changed, 7 insertions, 7 deletions
diff --git a/texinfos.am b/texinfos.am
index 8979d9a15..c697e981f 100644
--- a/texinfos.am
+++ b/texinfos.am
@@ -139,7 +139,7 @@ DVIPS = dvips
## `install-info' for the user.
install-info-am: $(INFO_DEPS)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(infodir)
+ $(mkinstalldirs) $(DESTDIR)$(infodir)
@for file in $(INFO_DEPS); do \
CYGNUS if test -f $$file; then d=.; else d=$(srcdir); fi; \
NOTCYGNUS d=$(srcdir); \
@@ -147,8 +147,8 @@ NOTCYGNUS d=$(srcdir); \
## be relative, for the install.
for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
if test -f $$d/$$ifile; then \
- echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
- $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
+ echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
+ $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
else : ; fi; \
done; \
done
@@ -163,10 +163,10 @@ NOTCYGNUS d=$(srcdir); \
## instance if you don't have a dir file, install-info will fail. I
## think instead it should create a new dir file for you. This bug
## causes the `make distcheck' target to fail reliably.
- echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
+ echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
## Use `|| :' here because Sun make passes -e to sh; if install-info
## fails then we'd fail if we used `;'.
- install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
+ install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
done; \
else : ; fi
@@ -179,11 +179,11 @@ uninstall-info:
else ii=; fi; \
for file in $(INFO_DEPS); do \
test -z "$ii" \
- || install-info --info-dir=$(infodir) --remove $$file; \
+ || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
done
@$(NORMAL_UNINSTALL)
for file in $(INFO_DEPS); do \
- (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
+ (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
done
dist-info: $(INFO_DEPS)