mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-22 08:49:42 +02:00
3b6325d914
- sfy/ben.pov: show a stack of all parts scanned so far - sfy/Makefile: replaced $(NAME).inc with general .sfy -> .inc rule - sfy/Makefile (PROJECTS): renamed to PARTS - sfy/Makefile (ben): process ben.pov
26 lines
532 B
Makefile
26 lines
532 B
Makefile
PARTS = baseframe batcvr dispbase dispshell kbd lcdframe
|
|
|
|
.SUFFIXES: .sfy .inc
|
|
|
|
.PHONY: run pov ben clean
|
|
|
|
run: $(NAME).sfy
|
|
./solidify $(NAME).sfy
|
|
|
|
.sfy.inc:
|
|
./solidify -p $<
|
|
|
|
pov: $(NAME).pov $(NAME).inc
|
|
povray +A +P -W1280 -H900 $(NAME).pov
|
|
|
|
ben: ben.pov $(PARTS:%=%.inc)
|
|
povray +A +P -W1280 -H900 ben.pov
|
|
# povray +A +P -W640 -H480 ben.pov
|
|
|
|
$(NAME).pov: template.pov
|
|
sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
|
|
|
|
clean:
|
|
rm -f $(PARTS:%=%.inc) $(PARTS:%=%.pov) *.pgm
|
|
rm -f $(PARTS:%=%.png)
|