summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-15 03:29:47 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2015-02-15 03:29:47 -0500
commitbfe14841604b6be403e7123e8b6667b1f0aff6f6 (patch)
treef33b8808412932c8606e63c9a11dcd4e60b919a9 /Makefile
parent5cf1fa74b42eb8feaab23078bef6f31f6d647c33 (diff)
downloadgerbonara-bfe14841604b6be403e7123e8b6667b1f0aff6f6.tar.gz
gerbonara-bfe14841604b6be403e7123e8b6667b1f0aff6f6.tar.bz2
gerbonara-bfe14841604b6be403e7123e8b6667b1f0aff6f6.zip
Add cairo example code, and use example-generated image in readme
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7de5b4a..8d3fd33 100644
--- a/Makefile
+++ b/Makefile
@@ -3,25 +3,32 @@ PYTHON ?= python
NOSETESTS ?= nosetests
DOC_ROOT = doc
+EXAMPLES = examples
+.PHONY: clean
clean: doc-clean
- #$(PYTHON) setup.py clean
find . -name '*.pyc' -delete
rm -rf coverage .coverage
rm -rf *.egg-info
+.PHONY: test
test:
$(NOSETESTS) -s -v gerber
-
+
+.PHONY: test-coverage
test-coverage:
rm -rf coverage .coverage
$(NOSETESTS) -s -v --with-coverage --cover-package=gerber
-
+
+.PHONY: doc-html
doc-html:
(cd $(DOC_ROOT); make html)
-
+.PHONY: doc-clean
doc-clean:
(cd $(DOC_ROOT); make clean)
-
+
+.PHONY: examples
+examples:
+ PYTHONPATH=. $(PYTHON) examples/cairo_example.py