145 lines
4.0 KiB
Makefile
145 lines
4.0 KiB
Makefile
|
#--------------------------------------------------------
|
||
|
|
||
|
MOYEN=+w1280 +h1024
|
||
|
GRAND=+w1600 +h1200
|
||
|
PETIT=+w800 +h600
|
||
|
DIMS=$(PETIT)
|
||
|
|
||
|
OPTS=+a +q9 -d
|
||
|
LOWR=-a +q5 -d
|
||
|
|
||
|
POVRAY=povray
|
||
|
|
||
|
# nouveau mars 2001
|
||
|
INCS = incs/
|
||
|
|
||
|
# CJPEGOPT=-quality 88 -progressive -dct float -targa
|
||
|
CJPEGOPT = -progressive -dct float -quality 88
|
||
|
PNGOPT = -interlace -compression 9 -text png.txt
|
||
|
|
||
|
all: loco.png parking.png corail.png train.png \
|
||
|
inside.png benne.png electric.png truc.png wagons.png \
|
||
|
ridelles.png rotonde.png grue.png t1.jpg t2.jpg t3.jpg \
|
||
|
citerne.png
|
||
|
echo "on a fait les images" >> log.toto
|
||
|
|
||
|
targa: tmp/ridelles.tga tmp/electric.tga tmp/citerne.tga \
|
||
|
tmp/corail.tga tmp/voiture.tga
|
||
|
echo "on a fait les targas" >> log.toto
|
||
|
|
||
|
GLOBDEPS=${INCS}/train.inc ${INCS}/plancher.inc ${INCS}/poteaux.inc \
|
||
|
${INCS}/rails.inc \
|
||
|
${INCS}/constantes.inc
|
||
|
|
||
|
#--------------------------------------------------------
|
||
|
|
||
|
|
||
|
essai.png: essai.pov Makefile $(GLOBDEPS)
|
||
|
$(POVRAY) +Iessai +Oessai $(DIMS) $(OPTS)
|
||
|
|
||
|
|
||
|
#-----------------------------------------------------------------------
|
||
|
#
|
||
|
# le grand garage de tout les wagons
|
||
|
#
|
||
|
|
||
|
tmp/rotonde.tga: rotonde.pov rotonde.inc
|
||
|
$(POVRAY) +Irotonde +FT +Otmp/ $(DIMS) $(OPTS) +v
|
||
|
|
||
|
rotonde.jpg: tmp/rotonde.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/rotonde.tga > rotonde.jpg
|
||
|
|
||
|
#-----------------------------------------------------------------------
|
||
|
|
||
|
parking.png: parking.pov Makefile $(GLOBDEPS)
|
||
|
$(POVRAY) +Iparking $(DIMS) $(OPTS) +v
|
||
|
|
||
|
loco.png: loco.pov ${DEPS} Makefile
|
||
|
$(POVRAY) +Iloco $(DIMS) $(OPTS) +v
|
||
|
|
||
|
train.png: train.pov ${DEPS} Makefile
|
||
|
$(POVRAY) +Itrain $(DIMS) $(OPTS) +v
|
||
|
|
||
|
|
||
|
corail.png: corail.pov Makefile $(GLOBDEPS)
|
||
|
$(POVRAY) +Icorail $(DIMS) $(OPTS) +v
|
||
|
|
||
|
|
||
|
gare.tga: gare.pov gare.inc plancher.tga plancher.inc \
|
||
|
enseigne.inc Makefile
|
||
|
$(POVRAY) +Igare +FT $(DIMS) $(OPTS) +v
|
||
|
|
||
|
#-----------------------------------------------------------------------
|
||
|
|
||
|
tmp/wagons.tga: wagons.pov plancher.inc ridelles.inc \
|
||
|
train.inc poteaux.inc Makefile
|
||
|
$(POVRAY) +Iwagons +ft +Otmp/ $(DIMS) $(OPTS) +v
|
||
|
|
||
|
wagons.jpg: tmp/wagons.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/wagons.tga > wagons.jpg
|
||
|
|
||
|
inside.png: inside.pov $(GLOBDEPS) Makefile
|
||
|
$(POVRAY) +Iinside $(DIMS) $(OPTS) +v
|
||
|
|
||
|
tmp/benne.tga: train.inc benne.pov constantes.inc rails.inc \
|
||
|
benne.inc Makefile
|
||
|
$(POVRAY) +Ibenne +Otmp/benne +FT $(DIMS) $(OPTS) +v
|
||
|
|
||
|
benne.jpg: tmp/benne.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/benne.tga > benne.jpg
|
||
|
|
||
|
tmp/citerne.tga: citerne.pov citerne.inc $(GLOBDEPS)
|
||
|
$(POVRAY) +Iciterne +Otmp/citerne +FT $(DIMS) $(OPTS) +v
|
||
|
citerne.jpg: tmp/citerne.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/citerne.tga > citerne.jpg
|
||
|
|
||
|
|
||
|
tmp/electric.tga: electric.pov electric.inc train.inc rails.inc \
|
||
|
instruments.inc Makefile
|
||
|
$(POVRAY) +Ielectric +FT +Otmp/electric $(DIMS) $(OPTS) +v
|
||
|
electric.jpg: tmp/electric.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/electric.tga > electric.jpg
|
||
|
|
||
|
truc.tga: truc.pov train.inc poteaux.inc \
|
||
|
decor.inc voiture.inc constantes.inc \
|
||
|
enseigne.inc electric.inc corail.inc \
|
||
|
grue.inc instruments.inc galerie.inc
|
||
|
$(POVRAY) +Itruc +FT $(DIMS) $(LOWR) -v
|
||
|
|
||
|
|
||
|
tmp/ridelles.tga: ridelles.pov ridelles.inc $(GLOBDEPS)
|
||
|
$(POVRAY) +Iridelles +ft +Otmp/ridelles $(DIMS) $(OPTS) +v
|
||
|
|
||
|
ridelles.jpg: tmp/ridelles.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/ridelles.tga > ridelles.jpg
|
||
|
|
||
|
|
||
|
tmp/grue.tga: grue.pov train.inc grue.inc rails.inc \
|
||
|
poteaux.inc Makefile
|
||
|
$(POVRAY) +Igrue +ft +otmp/ $(DIMS) $(OPTS) +v
|
||
|
grue.jpg: tmp/grue.tga
|
||
|
cjpeg $(CJPEGOPT) tmp/grue.tga > grue.jpg
|
||
|
|
||
|
#--------------------------------------------------------
|
||
|
# les trucs en travaux
|
||
|
|
||
|
tmp/voiture.tga: voiture.inc voiture.pov $(GLOBDEPS)
|
||
|
$(POVRAY) +Ivoiture +FT +Otmp/ $(DIMS) $(OPTS) +v
|
||
|
|
||
|
#--------------------------------------------------------
|
||
|
|
||
|
SRCFILES=*.inc *.pov *.txt Makefile *.sh
|
||
|
|
||
|
lines:
|
||
|
wc $(SRCFILES) | sort -n
|
||
|
|
||
|
tarball: $(SRCFILES)
|
||
|
ls $^ > MANIFEST ; \
|
||
|
( cd .. ; \
|
||
|
tar zcvf jouets-tth.tar.gz \
|
||
|
`sed 's/^/Jouets\//' Jouets/MANIFEST` )
|
||
|
date >> tarball
|
||
|
|
||
|
#--------------------------------------------------------
|
||
|
|