]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add more clean commands and remove pycache from git
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 6 Jul 2013 13:16:17 +0000 (15:16 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 6 Jul 2013 13:16:17 +0000 (15:16 +0200)
.gitignore
Makefile

index 1260afdfe3ca5b30e5b72f724db2e123d7b9f713..af3746cf46275d24a1d123a882684f65aa8c7d5c 100644 (file)
@@ -8,6 +8,7 @@ build
 dist
 .DS_Store
 .tox
+**/__pycache__
 babel/global.dat
 tests/messages/data/project/i18n/long_messages.pot
 tests/messages/data/project/i18n/temp.pot
index 42520834d5adc4db5cc6da146bce69ed80b228b5..27a1377ecb3ae05baa3d7131f91ea724c795032c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 test: import-cldr
        @py.test tests
 
+clean: clean-cldr clean-pyc
+
 import-cldr:
        @./scripts/download_import_cldr.py
 
@@ -8,10 +10,14 @@ clean-cldr:
        @rm babel/localedata/*.dat
        @rm babel/global.dat
 
+clean-pyc:
+       @find . -name '*.pyc' -exec rm {} \;
+
 develop:
        @pip install --editable .
 
 tox-test:
        @PYTHONDONTWRITEBYTECODE= tox
+       @$(MAKE) clean-pyc
 
-.PHONY: test develop tox-test
+.PHONY: test develop tox-test clean-pyc clean-cldr import-cldr clean