1
Fork 0

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

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