33 lines
1,021 B
Makefile
33 lines
1,021 B
Makefile
BITMAPS:=$(patsubst parts/%.dat, bitmaps/%.png, $(wildcard parts/[0-9]*.dat))
|
|
BITMAPSWF:=$(patsubst parts/%.dat, bitmaps-wireframe/%.png, $(wildcard parts/[0-9]*.dat))
|
|
NORMALIZED:=$(patsubst parts/%.dat, normalized/%.dat, $(wildcard parts/*.dat))
|
|
|
|
all: parts
|
|
|
|
parts:
|
|
mkdir -p parts
|
|
python partsgen.py
|
|
|
|
montage.png: parts $(BITMAPS)
|
|
montage -label '%f' $(BITMAPS) $@
|
|
|
|
montage-wireframe.png: parts $(BITMAPSWF)
|
|
montage -label '%f' $(BITMAPSWF) $@
|
|
|
|
bitmaps/%.png: parts/%.dat
|
|
mkdir -p bitmaps
|
|
ldview -SaveActualSize=0 -SaveAlpha=1 -SaveWidth=300 -SaveHeight=300 -SaveZoomToFit=0 -SaveSnapShot=$@ $<
|
|
|
|
bitmaps-wireframe/%.png: parts/%.dat
|
|
mkdir -p bitmaps-wireframe
|
|
ldview -Wireframe=1 -SaveActualSize=0 -SaveAlpha=1 -SaveWidth=300 -SaveHeight=300 -SaveZoomToFit=0 -SaveSnapShot=$@ $<
|
|
|
|
clean:
|
|
rm -rf parts bitmaps normalized bitmaps-wireframe montage.png montage-wireframe.png
|
|
|
|
normalized/%.dat: parts/%.dat
|
|
mkdir -p normalized
|
|
python normalize.py $< normalized
|
|
|
|
test: $(NORMALIZED)
|
|
sha512sum --check parts.sha512
|