make 'reformat' do libstd as well.

This commit is contained in:
Graydon Hoare 2011-06-01 16:55:45 -07:00
parent af9272f70e
commit d569a71b0b
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
PP_INPUTS := $(wildcard $(addprefix $(S)src/lib/,*.rs */*.rs)) \
$(wildcard $(addprefix $(S)src/comp/,*.rs */*.rs */*/*.rs))
reformat: $(SREQ1)
@$(call E, reformat [stage1]: $@)
for i in $(wildcard $(addprefix $(S)src/comp/, \
*.rs */*.rs */*/*.rs)); \
for i in $(PP_INPUTS); \
do $(call CFG_RUN_TARG,stage1, stage1/rustc$(X)) \
--pretty $$i >$$i.tmp && mv $$i.tmp $$i; \
done