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 09:34:21 +03:00
|
|
|
.SUFFIXES: .sfy .inc
|
|
|
|
|
|
|
|
.PHONY: run pov ben clean
|
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
|
|
|
|
povray +A +P -W1280 -H900 $(NAME).pov
|
|
|
|
|
2010-09-27 09:34:21 +03:00
|
|
|
ben: ben.pov $(PARTS:%=%.inc)
|
|
|
|
povray +A +P -W1280 -H900 ben.pov
|
|
|
|
# povray +A +P -W640 -H480 ben.pov
|
|
|
|
|
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)
|