Skip to content

Commit 242ecd0

Browse files
brsongraydon
authored andcommitted
Reorganize makefile targets
1 parent 77f4c52 commit 242ecd0

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

src/Makefile

+8-21
Original file line numberDiff line numberDiff line change
@@ -759,14 +759,13 @@ test/compile-fail/%.rustc.out.tmp: test/compile-fail/%.rs $(SREQ)
759759
$(CFG_QUIET)grep --text --quiet \
760760
"$$(grep error-pattern $< | cut -d : -f 2- | tr -d '\n\r')" $@
761761

762-
test/run-pass/%.boot$(CFG_EXE_SUFFIX): test/run-pass/%.rc $(BREQ)
763-
@$(call CFG_ECHO, compile [boot]: $<)
764-
$(BOOT) -o $@ $<
762+
%.bc: %.rc $(SREQ)
763+
@$(call CFG_ECHO, compile [rustc]: $<)
764+
$(RUSTC) -o $@ $<
765765

766-
test/bench/shootout/%.boot$(CFG_EXE_SUFFIX): \
767-
test/bench/shootout/%.rs $(BREQ)
768-
@$(call CFG_ECHO, compile [boot]: $<)
769-
$(BOOT) -o $@ $<
766+
%.bc: %.rs $(SREQ)
767+
@$(call CFG_ECHO, compile [rustc]: $<)
768+
$(RUSTC) -o $@ $<
770769

771770
%.ll: %.bc
772771
@$(call CFG_ECHO, dis [llvm]: $<)
@@ -789,26 +788,14 @@ test/bench/shootout/%.boot$(CFG_EXE_SUFFIX): \
789788
@# programs, I\'ll live with the noise.
790789
-$(CFG_QUIET)$(DSYMUTIL) $@
791790

792-
test/run-pass/%.bc: test/run-pass/%.rc $(SREQ)
793-
@$(call CFG_ECHO, compile [rustc]: $<)
794-
$(RUSTC) -o $@ $<
795-
796-
test/run-pass/%.boot$(CFG_EXE_SUFFIX): test/run-pass/%.rs $(BREQ)
791+
%.boot$(CFG_EXE_SUFFIX): %.rs $(BREQ)
797792
@$(call CFG_ECHO, compile [boot]: $<)
798793
$(BOOT) -o $@ $<
799794

800-
test/run-pass/%.bc: test/run-pass/%.rs $(SREQ)
801-
@$(call CFG_ECHO, compile [rustc]: $<)
802-
$(RUSTC) -o $@ $<
803-
804-
test/run-fail/%.boot$(CFG_EXE_SUFFIX): test/run-fail/%.rs $(BREQ)
795+
%.boot$(CFG_EXE_SUFFIX): %.rc $(BREQ)
805796
@$(call CFG_ECHO, compile [boot]: $<)
806797
$(BOOT) -o $@ $<
807798

808-
test/run-fail/%.bc: test/run-fail/%.rs $(SREQ)
809-
@$(call CFG_ECHO, compile [rustc]: $<)
810-
$(RUSTC) -o $@ $<
811-
812799

813800
######################################################################
814801
# Auto-dependency

0 commit comments

Comments
 (0)