Selaa lähdekoodia

Makefile cleanup

Taddeus Kroes 13 vuotta sitten
vanhempi
sitoutus
b30cbe67bf
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      Makefile

+ 5 - 3
Makefile

@@ -35,15 +35,17 @@ d := tests/
 include base.mk
 include $(d)/rules.mk
 
-.PHONY: doc
+.PHONY: all doc build clean pyclean distclean
 
 all: doc build
 
+distclean: clean pyclean
+
 clean:
 	rm -rf $(CLEAN)
 
-distclean:
-	rm -rf $(CLEAN) `find . -name \*.pyc`
+pyclean:
+	find -name \*.pyc -delete
 
 $(TGT_DIR):
 	mkdir -p $(TGT_DIR)