Root/sfy/Makefile

Source at commit 43b3694d7ac61d53f0ad94b9796ce6a5525c8572 created 9 years 2 months ago.
By Werner Almesberger, Corrected aspect ratio, added lateral views, and improved Makefile.
1PARTS = baseframe batcvr dispbase dispshell kbd lcdframe
2
3PRJ=http://projects.qi-hardware.com/index.php/p/ben-scans/source/tree/master
4DIR=$(PRJ)/data/csv
5FACE_A=$(DIR)/ben-$(NAME)-$(TOP)-100um.txt.bz2
6FACE_B=$(DIR)/ben-$(NAME)-$(BOTTOM)-100um.txt.bz2
7
8.SUFFIXES: .sfy .inc
9
10.PHONY: new run pov sben ben clean
11
12new:
13        ./solidify $(NAME).sfy $(FACE_A) $(FACE_B) $(D)
14
15run: $(NAME).sfy
16        ./solidify $(NAME).sfy
17
18.sfy.inc:
19        ./solidify -p $<
20
21pov: $(NAME).pov $(NAME).inc
22        povray +A -P -W1280 -H900 $(NAME).pov
23
24sben: ben.pov $(PARTS:%=%.inc)
25        povray -A +P -W640 -H320 ben.pov
26        
27ben ben.png: ben.pov $(PARTS:%=%.inc)
28        povray +A +P -W1600 -H800 ben.pov
29        
30upload: ben
31        convert ben.png ben.jpg
32        qippl ben.jpg ben-scans
33
34$(NAME).pov: template.pov
35        sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
36
37clean:
38        rm -f $(PARTS:%=%.inc) $(PARTS:%=%.pov) *.pgm
39        rm -f $(PARTS:%=%.png)
40

Archive Download this file

Branches:
master



interactive