fix clean in Makefiles

This commit is contained in:
danyabeerzun 2018-11-21 14:29:35 +03:00
parent 16d3f839ce
commit 4c3dba947c
3 changed files with 8 additions and 2 deletions

View file

@ -13,3 +13,6 @@ $(TESTS): %: %.expr
clean:
rm -f test*.log *.s *~ $(TESTS)
pushd expressions && make clean && popd
pushd deep-expressions && make clean && popd
pushd x86only && make clean && popd

View file

@ -12,4 +12,5 @@ $(TESTS): %: %.expr
@cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
clean:
rm -f *.log *.s *~ $(TESTS)
rm -f *.log *.s *~
find . -maxdepth 1 -type f -not -name '*.*' -not -name 'Makefile' -delete

View file

@ -12,4 +12,6 @@ $(TESTS): %: %.expr
@cat $@.input | $(RC) -s $< > $@.log && diff $@.log orig/$@.log
clean:
rm -f *.log *.s *~ $(TESTS)
rm -f *.log *.s *~
find . -maxdepth 1 -type f -not -name '*.*' -not -name 'Makefile' -delete