Tidy up Makefile part of #29260 and apply to makefile.mk too
[p5sagit/p5-mst-13.2.git] / win32 / makefile.mk
index a871758..80454ca 100644 (file)
@@ -1008,7 +1008,12 @@ all : .\config.h $(GLOBEXE) $(MINIPERL) $(MK2)           \
        $(RIGHTMAKE) $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE)  \
        $(X2P) MakePPPort Extensions $(PERLSTATIC)
 
-reonly : .\config.h $(GLOBEXE) $(MINIPERL) $(MK2)              \
+..\regnodes.h : ..\regcomp.sym
+       cd .. && regcomp.pl && cd win32
+
+regnodes : ..\regnodes.h
+
+reonly : regnodes .\config.h $(GLOBEXE) $(MINIPERL) $(MK2)             \
        $(RIGHTMAKE) $(MINIMOD) $(CONFIGPM) $(UNIDATAFILES) $(PERLEXE)  \
        $(X2P) Extensions_reonly
 
@@ -1552,9 +1557,6 @@ test-reonly : reonly utils
 regen :
        cd .. && regen.pl && cd win32
 
-regnodes :
-       cd .. && regcomp.pl && cd win32
-
 test-notty : test-prep
        set PERL_SKIP_TTY_TEST=1 && \
            cd ..\t && $(PERLEXE) -I.\lib harness $(TEST_SWITCHES) $(TEST_FILES)