Makefile 969 Bytes
Newer Older
lode_leroy's avatar
lode_leroy committed
1 2 3 4 5
BRLCAD=/opt/brlcad/bin
BRLCAD=c:/Software/BRL-CAD/bin

MGED=$(BRLCAD)/mged
G-STL=$(BRLCAD)/g-stl
lode_leroy's avatar
lode_leroy committed
6
VER=0.1.6
lode_leroy's avatar
lode_leroy committed
7 8 9 10 11 12

all:

.PHONY: dist

dist:
lode_leroy's avatar
lode_leroy committed
13
	(cd ..; tar zcf pycam/pycam.tgz pycam/*{Makefile,TXT} pycam/*.py pycam/tests/*.py pycam/pycam/*/*.py pycam/pycam/*.py pycam/Samples/*/*.stl)
lode_leroy's avatar
lode_leroy committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

dist-ver:
	(cd ..; tar zcf pycam-$(VER)/pycam-$(VER).tgz pycam-$(VER)/*{Makefile,TXT} pycam-$(VER)/*.py pycam-$(VER)/tests/*.py pycam-$(VER)/pycam/*/*.py pycam-$(VER)/pycam/*.py pycam-$(VER)/Samples/*/*.stl)

test:
	rm -f test.g; $(MGED) test.g < test.txt; $(MGED) test.g

test0:
	rm -f test.g; $(MGED) test.g < cutter0.txt; $(MGED) test.g

test1:
	rm -f test.g; $(MGED) test.g < cutter1.txt; $(MGED) test.g

test2:
	rm -f test.g; $(MGED) test.g < cutter2.txt; $(MGED) test.g

test3:
	rm -f test.g; $(MGED) test.g < cutter3.txt; $(MGED) test.g


TestModel.stl:
	./Tests/MGEDExporterTest.py
	rm -f TestModel.g
	$(MGED) TestModel.g < TestModel.txt
	$(G-STL) -o TestModel.stl TestModel.g model0