-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTATIC.make
61 lines (48 loc) · 1.33 KB
/
STATIC.make
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile to process POV-Ray lab hand-in files - STATIC IMAGES
# Last edited on 2017-05-08 02:58:56 by stolfilocal
# ----------------------------------------------------------------------
# No need to change below here
.PHONY: \
large-portrait \
large-landscape \
medium-portrait \
medium-landscape \
small-portrait \
small-landscape
custom:
${MAKE} WIDTH=1400 HEIGHT=1050 image
large-portrait:
${MAKE} WIDTH=600 HEIGHT=800 image
large-landscape:
${MAKE} WIDTH=800 HEIGHT=600 image
medium-portrait:
${MAKE} WIDTH=360 HEIGHT=480 image
medium-landscape:
${MAKE} WIDTH=480 HEIGHT=360 image
small-portrait:
${MAKE} WIDTH=240 HEIGHT=320 image
small-landscape:
${MAKE} WIDTH=320 HEIGHT=240 image
ifneq "/${WIDTH}" "/"
ifneq "/${HEIGHT}" "/"
#=======================================================================
image: ${NAME}.png
${NAME}.png: ${NAME}.pov ${INC_IMG_FILES}
-/bin/rm -f ${NAME}.png
${POVRAY} +K0.5000 \
+FN +Q9 \
+W${WIDTH} +H${HEIGHT} \
+AM1 +A0.0 +R${NRAYS} \
+D \
+L${POVINC} \
+L${POVTTF} \
+I${NAME}.pov \
+O${NAME}.png \
2>&1 | ./povray-output-filter.gawk
if [[ "/${SHOW}" == "/YES" ]]; then \
if [[ -s ${NAME}.png ]]; then \
${IMVIEW} ${NAME}.png ; \
fi \
fi
endif
endif