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-28 12:36:17 +03:00
|
|
|
.PHONY: new run pov sben ben clean
|
2010-09-27 18:08:18 +03:00
|
|
|
|
|
|
|
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-28 12:36:17 +03:00
|
|
|
sben: ben.pov $(PARTS:%=%.inc)
|
|
|
|
povray -A +P -W640 -H320 ben.pov
|
2010-09-27 09:34:21 +03:00
|
|
|
|
2010-09-28 12:36:17 +03:00
|
|
|
ben ben.png: ben.pov $(PARTS:%=%.inc)
|
|
|
|
povray +A +P -W1600 -H800 ben.pov
|
|
|
|
|
|
|
|
upload: ben
|
|
|
|
convert ben.png ben.jpg
|
|
|
|
qippl ben.jpg ben-scans
|
|
|
|
|
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)
|