2010-09-27 09:34:21 +03:00
|
|
|
PARTS = baseframe batcvr dispbase dispshell kbd lcdframe
|
2010-09-27 08:46:54 +03:00
|
|
|
|
2010-09-27 18:08:18 +03:00
|
|
|
PRJ=http://projects.qi-hardware.com/index.php/p/ben-scans/source/tree/master
|
|
|
|
DIR=$(PRJ)/data/csv
|
|
|
|
FACE_A=$(DIR)/ben-$(NAME)-$(TOP)-100um.txt.bz2
|
|
|
|
FACE_B=$(DIR)/ben-$(NAME)-$(BOTTOM)-100um.txt.bz2
|
|
|
|
|
2010-09-27 09:34:21 +03:00
|
|
|
.SUFFIXES: .sfy .inc
|
|
|
|
|
2010-09-27 18:08:18 +03:00
|
|
|
.PHONY: new run pov ben clean
|
|
|
|
|
|
|
|
new:
|
|
|
|
./solidify $(NAME).sfy $(FACE_A) $(FACE_B) $(D)
|
2010-09-27 08:46:54 +03:00
|
|
|
|
|
|
|
run: $(NAME).sfy
|
|
|
|
./solidify $(NAME).sfy
|
|
|
|
|
2010-09-27 09:34:21 +03:00
|
|
|
.sfy.inc:
|
|
|
|
./solidify -p $<
|
2010-09-27 08:46:54 +03:00
|
|
|
|
|
|
|
pov: $(NAME).pov $(NAME).inc
|
2010-09-27 18:08:18 +03:00
|
|
|
povray +A -P -W1280 -H900 $(NAME).pov
|
2010-09-27 08:46:54 +03:00
|
|
|
|
2010-09-27 09:34:21 +03:00
|
|
|
ben: ben.pov $(PARTS:%=%.inc)
|
|
|
|
povray +A +P -W1280 -H900 ben.pov
|
|
|
|
# povray +A +P -W640 -H480 ben.pov
|
|
|
|
|
2010-09-27 08:46:54 +03:00
|
|
|
$(NAME).pov: template.pov
|
|
|
|
sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
clean:
|
2010-09-27 09:34:21 +03:00
|
|
|
rm -f $(PARTS:%=%.inc) $(PARTS:%=%.pov) *.pgm
|
|
|
|
rm -f $(PARTS:%=%.png)
|
2010-09-27 18:08:18 +03:00
|
|
|
|
|
|
|
xxx:
|
|
|
|
for n in $(PARTS); do ( make NAME=$$n pov && qippl $$n.png tmp; ) & done
|