瀏覽代碼

Makefile: Show error if target pep8 fails.

Ask Solem 15 年之前
父節點
當前提交
d4a5cd85c7
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      Makefile

+ 8 - 1
Makefile

@@ -1,7 +1,8 @@
 PEP8=pep8
 
 pep8:
-	find . -name "*.py" | xargs pep8
+	(find . -name "*.py" | xargs pep8 | perl -nle'\
+		print; $$a=1 if $$_}{exit($$a)')
 
 ghdocs:
 	contrib/doc2ghpages
@@ -14,3 +15,9 @@ bump:
 
 coverage:
 	(cd testproj; python manage.py test --figleaf)
+
+test:
+	(cd testproj; python manage.py test)
+
+releaseok: pep8 autodoc test
+