Root/sfy/Makefile

Source at commit dbc736089e7eefbaaf83317e6577cdfc14ccbc94 created 8 years 8 months ago.
By Werner Almesberger, grr
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 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
24ben: ben.pov $(PARTS:%=%.inc)
25        povray +A +P -W1280 -H900 ben.pov
26# povray +A +P -W640 -H480 ben.pov
27        
28$(NAME).pov: template.pov
29        sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
30
31clean:
32        rm -f $(PARTS:%=%.inc) $(PARTS:%=%.pov) *.pgm
33        rm -f $(PARTS:%=%.png)
34

Archive Download this file

Branches:
master



interactive