mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-25 20:03:45 +02:00
20 lines
436 B
Makefile
20 lines
436 B
Makefile
|
PROJECTS = baseframe batcvr dispbase dispshell kbd lcdframe
|
||
|
|
||
|
.PHONY: run pov clean
|
||
|
|
||
|
run: $(NAME).sfy
|
||
|
./solidify $(NAME).sfy
|
||
|
|
||
|
$(NAME).inc: $(NAME).sfy
|
||
|
./solidify -p $(NAME).sfy
|
||
|
|
||
|
pov: $(NAME).pov $(NAME).inc
|
||
|
povray +A +P -W1280 -H900 $(NAME).pov
|
||
|
|
||
|
$(NAME).pov: template.pov
|
||
|
sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
|
||
|
|
||
|
clean:
|
||
|
rm -f $(PROJECTS:%=%.inc) $(PROJECTS:%=%.pov) *.pgm
|
||
|
rm -f $(PROJECTS:%=%.png)
|