gerbonara/Makefile
Hamilton Kibbe 6f876edd09 Add PCB interface
this incorporates some of @chintal's layers.py changes
PCB.from_directory() simplifies loading of multiple gerbers
the PCB() class should be pretty helpful going forward...

the context classes could use some cleaning up, although I'd like to wait until the freecad stuff gets merged, that way we can try to refactor the context base to support more use cases
2015-12-22 02:47:23 -05:00

35 lines
600 B
Makefile

PYTHON ?= python
NOSETESTS ?= nosetests
DOC_ROOT = doc
EXAMPLES = examples
.PHONY: clean
clean: doc-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
PYTHONPATH=. $(PYTHON) examples/pcb_example.py