From: Stefano Lattarini Date: Sat, 8 Dec 2012 20:45:53 +0000 (+0100) Subject: maintcheck: prefer '$(am__cd)' over plain 'cd' X-Git-Tag: v1.12.6~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d47000c6c7fe974919cb6e256fcc866eb6b19273;p=thirdparty%2Fautomake.git maintcheck: prefer '$(am__cd)' over plain 'cd' 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 --- diff --git a/Makefile.am b/Makefile.am index ee1fdceab..22a8fbd14 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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.