Skip to content

Commit

Permalink
Refactor Makefile testing again -- previous method caused too much re…
Browse files Browse the repository at this point in the history
…build.
  • Loading branch information
pmichaud committed Apr 8, 2009
1 parent 4abd893 commit a2728b4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions build/Makefile.in
Expand Up @@ -179,7 +179,7 @@ perl6.pbc: perl6_s1.pbc src/gen_setting.pm
$(PARROT) $(PARROT_ARGS) -o perl6.pbc perl6.pir

# the Perl 6 stage-1 compiler
perl6_s1.pbc: makefilecheck $(PARROT) $(SOURCES) $(BUILTINS_PIR)
perl6_s1.pbc: Makefile $(PARROT) $(SOURCES) $(BUILTINS_PIR)
$(PERL) -e "" > src/gen_setting.pir
$(PARROT) $(PARROT_ARGS) -o perl6_s1.pbc perl6.pir

Expand All @@ -192,7 +192,7 @@ src/gen_actions.pir: $(PARROT) $(NQP) $(PCT) src/parser/actions.pm
$(PARROT) $(PARROT_ARGS) $(NQP) --output=src/gen_actions.pir \
--encoding=fixed_8 --target=pir src/parser/actions.pm

src/gen_builtins.pir: makefilecheck build/gen_builtins_pir.pl
src/gen_builtins.pir: Makefile build/gen_builtins_pir.pl
$(PERL) build/gen_builtins_pir.pl $(BUILTINS_PIR) > src/gen_builtins.pir

src/gen_metaop.pir: build/gen_metaop_pir.pl
Expand All @@ -201,10 +201,10 @@ src/gen_metaop.pir: build/gen_metaop_pir.pl
src/gen_junction.pir: build/gen_junction_pir.pl
$(PERL) build/gen_junction_pir.pl src/gen_junction.pir

src/gen_setting.pm: makefilecheck build/gen_setting_pm.pl $(SETTING)
src/gen_setting.pm: Makefile build/gen_setting_pm.pl $(SETTING)
$(PERL) build/gen_setting_pm.pl $(SETTING) > src/gen_setting.pm

$(PERL6_GROUP): makefilecheck $(PARROT) $(PMC_SOURCES)
$(PERL6_GROUP): Makefile $(PARROT) $(PMC_SOURCES)
cd $(PMC_DIR) && $(BUILD_DYNPMC) generate $(PMCS)
cd $(PMC_DIR) && $(BUILD_DYNPMC) compile $(PMCS)
cd $(PMC_DIR) && $(BUILD_DYNPMC) linklibs $(PMCS)
Expand Down Expand Up @@ -323,8 +323,10 @@ help:
@echo " help: Print this help message."
@echo ""

makefilecheck: Makefile
@$(PERL) -e 'die "Makefile is out of date... try re-running Configure.pl\n" if (-M "build/Makefile.in" < -M "Makefile");'
Makefile: build/Makefile.in
@echo ""
@echo "warning: Makefile is out of date... re-run Configure.pl"
@echo ""

CRITIC_FILES=Configure.pl t/harness build/ tools/

Expand Down

0 comments on commit a2728b4

Please sign in to comment.