Root/sfy/Makefile

Source at commit 3b6325d9142a0e99b18408d342722c3fedbc6204 created 8 years 8 months ago.
By Werner Almesberger, Show an exploded view of all parts scanned so far in one image.
1PARTS = baseframe batcvr dispbase dispshell kbd lcdframe
2
3.SUFFIXES: .sfy .inc
4
5.PHONY: run pov ben clean
6
7run: $(NAME).sfy
8        ./solidify $(NAME).sfy
9
10.sfy.inc:
11        ./solidify -p $<
12
13pov: $(NAME).pov $(NAME).inc
14        povray +A +P -W1280 -H900 $(NAME).pov
15
16ben: ben.pov $(PARTS:%=%.inc)
17        povray +A +P -W1280 -H900 ben.pov
18# povray +A +P -W640 -H480 ben.pov
19        
20$(NAME).pov: template.pov
21        sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
22
23clean:
24        rm -f $(PARTS:%=%.inc) $(PARTS:%=%.pov) *.pgm
25        rm -f $(PARTS:%=%.png)
26

Archive Download this file

Branches:
master



interactive