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)