The clean-s rule must be run before the tests, not at the same time!
Unified · Split
| @@ -59,7 +59,9 @@ RUN_TCC = $(NATIVE_DEFINES) -run $(TOPSRC)/tcc.c $(TCCFLAGS) · 58 unmodified lines | |||
| 59 | DISAS = objdump -d | 59 | DISAS = objdump -d |
| 60 | DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1) | 60 | DUMPTCC = (set -x; $(TOP)/tcc -vv; ldd $(TOP)/tcc; exit 1) |
| 61 | 61 | ||
| 62 | all test : clean-s $(TESTS) | 62 | all test : |
| 63 | $(MAKE) clean-s | ||
| 64 | $(MAKE) $(TESTS) | ||
| 63 | 65 | ||
| 64 | hello-exe: ../examples/ex1.c | 66 | hello-exe: ../examples/ex1.c |
| 65 | @echo ------------ $@ ------------ | 67 | @echo ------------ $@ ------------ |