]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] yacc, lex: avoid extra forks in non-VPATH builds
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 22 Jul 2012 12:44:10 +0000 (14:44 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 22 Jul 2012 13:01:40 +0000 (15:01 +0200)
* lib/am/yacc.am, lib/am/lex.am: Use $(am__ensure_dir_exists) instead
of hand-rolled poor-man equivalent to ensure the directory of the
target exists.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/lex.am
lib/am/yacc.am

index cc443ca342c22430c3f27bae327e3e3e4cd6c31c..5d039f5e92efe6ac4b762e52876cd73c36ddf01d 100644 (file)
@@ -23,7 +23,7 @@ endif %?MAINTAINER-MODE%
 
 ?GENERIC?%%DERIVED-EXT%: %%EXT%
 ?!GENERIC?%OBJ%: %SOURCE%
-       %SILENT%test -d $(dir $@) || $(MKDIR_P) $(dir $@)
+       %SILENT%$(am__ensure_target_dir_exists)
 ?GENERIC?      %VERBOSE%$(am.lex.maybe-skip) \
 ?!GENERIC??DIST_SOURCE?        %VERBOSE%$(am.lex.maybe-skip) \
        $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c %OBJ% -- %COMPILE%
index b114f55afa5c40a8ab6a5b8d3292b974e3df8020..b621687487dcae0d580a40d733d253be55484ba6 100644 (file)
@@ -41,7 +41,7 @@ endif %?FIRST%
 
 ?GENERIC?%%DERIVED-EXT%: %%EXT%
 ?!GENERIC?%OBJ%: %SOURCE%
-       %SILENT%test -d $(dir $@) || $(MKDIR_P) $(dir $@)
+       %SILENT%$(am__ensure_target_dir_exists)
        %VERBOSE% \
 ?GENERIC?      $(am.yacc.maybe-skip) \
 ?!GENERIC??DIST_SOURCE?        $(am.yacc.maybe-skip) \