automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 09/10] [ng] texi: prefer $(CURDIR) over `pwd` in re


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 09/10] [ng] texi: prefer $(CURDIR) over `pwd` in recipes
Date: Sun, 12 Aug 2012 13:19:31 +0200

* lib/am/texibuild.mk: Here.  We can do so because the involved
recipes did not chdir before invoking `pwd`.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/texibuild.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/am/texibuild.mk b/lib/am/texibuild.mk
index 876c788..5d51506 100644
--- a/lib/am/texibuild.mk
+++ b/lib/am/texibuild.mk
@@ -52,7 +52,7 @@ define am.texi.build.info
 ##    to fail, the info files are not removed.  (They are needed by the
 ##    developer while he writes documentation.)
        $(AM_V_MAKEINFO)restore=: && backupdir=.am$$$$ && \
-       $(if $1,am__cwd=`pwd` && cd $(srcdir) &&) \
+       $(if $1,cd $(srcdir) &&) \
        rm -rf $$backupdir && mkdir $$backupdir && \
 ## If makeinfo is not installed we must not backup the files so
 ## 'missing' can do its job and touch $@ if it exists.
@@ -61,7 +61,7 @@ define am.texi.build.info
            if test -f $$f; then mv $$f $$backupdir; restore=mv; else :; fi; \
          done; \
        else :; fi && \
-       $(if $(am__info_insrc),cd "$$am__cwd" &&) \
+       $(if $(am__info_insrc),cd '$(CURDIR)' &&) \
        if $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) \
                       -I $(@D) -I $(srcdir)/$(@D) -o $@ $<; \
        then \
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]