maintcheck: prefer '$(am__cd)' over plain 'cd'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 8 Dec 2012 20:45:53 +0000 (21:45 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 9 Dec 2012 09:20:06 +0000 (10:20 +0100)
In a couple of rules in out own build system, as suggested by the
maintainer check 'sc_cd_relative_dir'.

* Makefile.am (web-manuals, clean_texinfo_clutter_cmd): Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Makefile.am

index ee1fdce..22a8fbd 100644 (file)
@@ -1000,8 +1000,8 @@ fetch:
 # The gendocs.sh script sadly leaves TeX and Texinfo auxiliary files
 # in the directory where it's invoked.
 clean_texinfo_clutter_cmd = \
-  cd doc && rm -f *.ac *.aux *.cm *.cp *.cps *.fn *.fns *.ky \
-                  *.log *.op *.pg *.toc *.tp *.tr *.vr *.vrs
+  $(am__cd) doc && rm -f *.ac *.aux *.cm *.cp *.cps *.fn *.fns *.ky \
+                         *.log *.op *.pg *.toc *.tp *.tr *.vr *.vrs
 
 clean-web-manuals:
        $(AM_V_at)rm -rf doc/web-manuals
@@ -1014,7 +1014,7 @@ web-manuals:
        $(AM_V_at)rm -rf doc/web-manuals
        $(AM_V_GEN): \
 ## The gendocs.sh script only works from the srcdir, sadly.
-         && cd $(srcdir)/doc \
+         && $(am__cd) $(srcdir)/doc \
          && GENDOCS_TEMPLATE_DIR=../lib \
          && export GENDOCS_TEMPLATE_DIR \
 ## Try to respect silent rules.