Root/sfy/Makefile

Source at commit 26beb8af0cff9191981f616d06f708cf4d747a85 created 8 years 10 months ago.
By Werner Almesberger, Added "new" along with its paraphernalia.
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
35xxx:
36        for n in $(PARTS); do ( make NAME=$$n pov && qippl $$n.png tmp; ) & done
37

Archive Download this file

Branches:
master



interactive