Root/sfy/Makefile

Source at commit 6e287cdfb6dd7d27e47c7dc40658e4fd24064cdc created 9 years 2 months ago.
By Werner Almesberger, Makefile and helper scripts for running solidify and POV-Ray.
1PROJECTS = baseframe batcvr dispbase dispshell kbd lcdframe
2
3.PHONY: run pov clean
4
5run: $(NAME).sfy
6        ./solidify $(NAME).sfy
7
8$(NAME).inc: $(NAME).sfy
9        ./solidify -p $(NAME).sfy
10
11pov: $(NAME).pov $(NAME).inc
12        povray +A +P -W1280 -H900 $(NAME).pov
13
14$(NAME).pov: template.pov
15        sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
16
17clean:
18        rm -f $(PROJECTS:%=%.inc) $(PROJECTS:%=%.pov) *.pgm
19        rm -f $(PROJECTS:%=%.png)
20

Archive Download this file

Branches:
master



interactive