Improved Makefile

* build instead of test target
* cleanup
This commit is contained in:
Thomas Patzke
2017-12-08 22:54:40 +01:00
parent 104eccf7c6
commit 36541bc9fb
+6 -2
View File
@@ -1,7 +1,7 @@
.PHONY: test test-yaml test-sigmac
TMPOUT = $(shell tempfile)
COVSCOPE = tools/sigma/*.py,tools/sigmac.py,tools/merge_sigma.py
test: clearcov test-yaml test-sigmac test-merge test-packaging finish
test: clearcov test-yaml test-sigmac test-merge build finish
clearcov:
rm -f .coverage
@@ -58,5 +58,9 @@ test-merge:
tests/test-merge.sh
! coverage run -a --include=$(COVSCOPE) tools/merge_sigma.py tests/not_existing.yml > /dev/null
test-packaging:
build:
cd tools && python3 setup.py bdist_wheel
clean:
cd tools; rm -fr build dist Sigma.egg-info
find tools/ -type d -name __pycache__ -exec rm -fr {} \;