mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-22 08:49:42 +02:00
43b3694d7a
- sfy/Makefile (sben): make a small image, for quick previews - sfy/Makefile (ben): changed size from 1280x900 to 1600x800 - sfy/Makefile (upload): convert ben.png to ben.jpg and upload to http://downloads.qi-hardware.com/people/werner/ben-scans/ben-bottom.jpg - sfy/ben.pov: adjusted camera position and aspect ratio - sfy/ben.pov: added lateral views
40 lines
899 B
Makefile
40 lines
899 B
Makefile
PARTS = baseframe batcvr dispbase dispshell kbd lcdframe
|
|
|
|
PRJ=http://projects.qi-hardware.com/index.php/p/ben-scans/source/tree/master
|
|
DIR=$(PRJ)/data/csv
|
|
FACE_A=$(DIR)/ben-$(NAME)-$(TOP)-100um.txt.bz2
|
|
FACE_B=$(DIR)/ben-$(NAME)-$(BOTTOM)-100um.txt.bz2
|
|
|
|
.SUFFIXES: .sfy .inc
|
|
|
|
.PHONY: new run pov sben ben clean
|
|
|
|
new:
|
|
./solidify $(NAME).sfy $(FACE_A) $(FACE_B) $(D)
|
|
|
|
run: $(NAME).sfy
|
|
./solidify $(NAME).sfy
|
|
|
|
.sfy.inc:
|
|
./solidify -p $<
|
|
|
|
pov: $(NAME).pov $(NAME).inc
|
|
povray +A -P -W1280 -H900 $(NAME).pov
|
|
|
|
sben: ben.pov $(PARTS:%=%.inc)
|
|
povray -A +P -W640 -H320 ben.pov
|
|
|
|
ben ben.png: ben.pov $(PARTS:%=%.inc)
|
|
povray +A +P -W1600 -H800 ben.pov
|
|
|
|
upload: ben
|
|
convert ben.png ben.jpg
|
|
qippl ben.jpg ben-scans
|
|
|
|
$(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)
|