浏览代码

Fix for makefile clean commands

Artur Efimov 8 年之前
父节点
当前提交
5fafeb70d5
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 3 2
      src/Makefile_linux
  2. 3 2
      src/Makefile_win32

+ 3 - 2
src/Makefile_linux

@@ -49,11 +49,12 @@ SDL2.sym: SDL2.Mod
 .PHONY: clean cleanall install pack prepare
 .PHONY: clean cleanall install pack prepare
 
 
 clean:
 clean:
-	rm -f *.c *.h *.o *.sym term/term.o .tmp..* ../Programs/.tmp..*
+	rm -f *.c *.h *.o *.sym term/term.o .tmp..* \
+		../Programs/.tmp..* ../bin/*
 	make -C ../data/bin/voc/src clean
 	make -C ../data/bin/voc/src clean
 
 
 cleanall: clean
 cleanall: clean
-	rm -f ../$(PROG) ../$(PROG).exe ../bin/*
+	rm -f ../$(PROG) ../$(PROG).exe
 	make -C ../data/bin/voc/src cleanall
 	make -C ../data/bin/voc/src cleanall
 
 
 prepare:
 prepare:

+ 3 - 2
src/Makefile_win32

@@ -53,11 +53,12 @@ resources.o: resources.rc
 .PHONY: clean cleanall install
 .PHONY: clean cleanall install
 
 
 clean:
 clean:
-	rm -f *.c *.h *.o *.sym term/term.o .tmp..* ../Programs/.tmp..*
+	rm -f *.c *.h *.o *.sym term/term.o .tmp..* \
+		../Programs/.tmp..* ../bin/*
 	make -C ../data/bin/voc/src clean
 	make -C ../data/bin/voc/src clean
 
 
 cleanall: clean
 cleanall: clean
-	rm -f ../$(PROG).exe ../bin/*
+	rm -f ../$(PROG) ../$(PROG).exe
 	make -C ../data/bin/voc/src cleanall
 	make -C ../data/bin/voc/src cleanall
 
 
 voc:
 voc: