Merged from user-dep-gen-branch.
[platform/upstream/automake.git] / texinfos.am
index db4c79a..da022d8 100644 (file)
@@ -146,7 +146,7 @@ CYGNUS        if test -f $$file; then d=.; else d=$(srcdir); fi; \
 NOTCYGNUS        d=$(srcdir); \
 ## We use these strange circumlocutions because we want the "ifile" to
 ## be relative, for the install.
-         for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
+         for ifile in `CDPATH=: && cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
            if test -f $$d/$$ifile; then \
              echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
              $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
@@ -201,7 +201,7 @@ dist-info: $(INFO_DEPS)
 ## other modes, allow only source dir.
 NOTCYGNUS        d=$(srcdir); \
 CYGNUS   if test -f $$base; then d=.; else d=$(srcdir); fi; \
-         for file in `cd $$d && eval echo $$base*`; do \
+         for file in `CDPATH=: && cd $$d && eval echo $$base*`; do \
            test -f $(distdir)/$$file \
            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
            || cp -p $$d/$$file $(distdir)/$$file; \