PovJouets/Makefile

116 lines
3.2 KiB
Makefile
Raw Normal View History

2021-03-07 20:58:18 +01:00
#--------------------------------------------------------
2021-03-15 17:29:35 +01:00
MOYEN = +w1280 +h1024
GRAND = +w1600 +h1200
PETIT = +w800 +h600
2021-03-13 18:56:21 +01:00
DIMS=$(PETIT)
2021-03-07 20:58:18 +01:00
2021-03-15 17:29:35 +01:00
OPTS = +a +q9 -d
2021-03-07 20:58:18 +01:00
2021-03-15 17:29:35 +01:00
POVRAY = povray
2021-03-07 20:58:18 +01:00
2021-03-08 14:35:37 +01:00
# nouveau mars 2021
2021-03-15 03:08:13 +01:00
INCS = incs
2021-03-07 20:58:18 +01:00
# CJPEGOPT=-quality 88 -progressive -dct float -targa
CJPEGOPT = -progressive -dct float -quality 88
PNGOPT = -interlace -compression 9 -text png.txt
2021-03-11 23:33:35 +01:00
all: loco.png parking.png corail.png train.png essai.png \
inside.png benne.png electric.png truc.png wagons.png \
ridelles.png rotonde.png grue.png \
2021-03-15 10:53:02 +01:00
citerne.png voiture.png gare.png
2021-03-07 20:58:18 +01:00
2021-03-13 18:56:21 +01:00
GLOBDEPS=${INCS}/train.inc ${INCS}/poteaux.inc \
2021-03-15 03:08:13 +01:00
${INCS}/electric.inc ${INCS}/voiture.inc \
2021-03-13 18:56:21 +01:00
${INCS}/rails.inc ${INCS}/grue.inc ${INCS}/ridelles.inc \
2021-03-16 00:48:07 +01:00
${INCS}/instruments.inc \
2021-03-15 03:08:13 +01:00
${INCS}/citerne.inc ${INCS}/benne.inc \
${INCS}/constantes.inc ${INCS}/locomotive.inc \
2021-03-16 00:48:07 +01:00
${INCS}/enseigne.inc \
2021-03-15 17:29:35 +01:00
picz/plancher.png picz/cadran.png \
2021-03-13 18:56:21 +01:00
contexte.inc monde.inc
2021-03-07 20:58:18 +01:00
#--------------------------------------------------------
essai.png: essai.pov Makefile $(GLOBDEPS)
2021-03-15 17:29:35 +01:00
$(POVRAY) +Iessai $(DIMS) $(OPTS)
foo.gif: Makefile essai.png voiture.png
convert -delay 20 \
voiture.png essai.png foo.gif
2021-03-07 20:58:18 +01:00
#-----------------------------------------------------------------------
#
# le grand garage de tout les wagons
#
2021-03-08 14:35:37 +01:00
rotonde.png: rotonde.pov Makefile $(GLOBDEPS)
$(POVRAY) +Irotonde $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
parking.png: parking.pov Makefile $(GLOBDEPS)
$(POVRAY) +Iparking $(DIMS) $(OPTS) +v
2021-03-15 17:29:35 +01:00
wagons.png: wagons.pov $(GLOBDEPS) Makefile
$(POVRAY) +Iwagons $(DIMS) $(OPTS) +v
gare.png: gare.pov $(GLOBDEPS) Makefile
$(POVRAY) +Igare $(DIMS) $(OPTS) +v
#-----------------------------------------------------------------------
2021-03-08 14:35:37 +01:00
loco.png: loco.pov ${GLOBDEPS} Makefile
2021-03-07 20:58:18 +01:00
$(POVRAY) +Iloco $(DIMS) $(OPTS) +v
2021-03-15 03:08:13 +01:00
train.png: train.pov ${GLOBDEPS} Makefile
2021-03-07 20:58:18 +01:00
$(POVRAY) +Itrain $(DIMS) $(OPTS) +v
corail.png: corail.pov Makefile $(GLOBDEPS)
$(POVRAY) +Icorail $(DIMS) $(OPTS) +v
#-----------------------------------------------------------------------
inside.png: inside.pov $(GLOBDEPS) Makefile
$(POVRAY) +Iinside $(DIMS) $(OPTS) +v
2021-03-08 05:24:35 +01:00
benne.png: benne.pov $(GLOBDEPS) Makefile
$(POVRAY) +Ibenne $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
2021-03-08 05:24:35 +01:00
electric.png: electric.pov $(GLOBDEPS) Makefile
$(POVRAY) +Ielectric $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
2021-03-08 14:35:37 +01:00
citerne.png: citerne.pov $(GLOBDEPS) Makefile
$(POVRAY) +Iciterne $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
2021-03-08 14:35:37 +01:00
truc.png: truc.pov $(GLOBDEPS) Makefile
$(POVRAY) +Itruc $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
2021-03-08 14:35:37 +01:00
ridelles.png: ridelles.pov $(GLOBDEPS) Makefile
$(POVRAY) +Iridelles $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
2021-03-08 14:35:37 +01:00
grue.png: grue.pov $(GLOBDEPS) Makefile
$(POVRAY) +Igrue $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
#--------------------------------------------------------
# les trucs en travaux
2021-03-15 03:08:13 +01:00
voiture.png: voiture.pov $(GLOBDEPS) Makefile
$(POVRAY) +Ivoiture $(DIMS) $(OPTS) +v
2021-03-07 20:58:18 +01:00
#--------------------------------------------------------
2021-03-16 00:48:07 +01:00
SRCFILES = *.inc incs/*.inc *.pov *.txt Makefile tools/*.sh
2021-03-07 20:58:18 +01:00
lines:
wc $(SRCFILES) | sort -n
tarball: $(SRCFILES)
ls $^ > MANIFEST ; \
( cd .. ; \
tar zcvf jouets-tth.tar.gz \
2021-03-15 10:53:02 +01:00
`sed 's/^/PovJouets\//' PovJouets/MANIFEST` )
2021-03-07 20:58:18 +01:00
date >> tarball
#--------------------------------------------------------