cleanup ..\git_version.h rule in win32/Makefile
authorDaniel Dragan <bulk88@hotmail.com>
Mon, 9 Dec 2013 00:38:49 +0000 (19:38 -0500)
committerTony Cook <tony@develop-help.com>
Mon, 9 Dec 2013 03:57:26 +0000 (14:57 +1100)
Group the nmake line onto 1 line similar to the dmake version, for 1 shell
call out vs 3. "&&" makes sure the build stops if miniperl returns non-0
instead of ignoring the code, cd'ing back to dir win32, and continuing
the build. Part of RT #120727.

win32/Makefile

index cfd8ed3..4fe42d6 100644 (file)
@@ -951,9 +951,7 @@ config.w32 : $(CFGSH_TMPL)
        @echo #endif>>$@
 
 ..\git_version.h : $(MINIPERL) ..\make_patchnum.pl
-       cd ..
-       miniperl -Ilib make_patchnum.pl
-       cd win32
+       cd .. && miniperl -Ilib make_patchnum.pl && cd win32
 
 # make sure that we recompile perl.c if the git version changes
 ..\perl$(o) : ..\git_version.h