2015-03-28 09:46:06 +00:00
|
|
|
BITMAPS:=$(patsubst parts/%.dat, bitmaps/%.png, $(wildcard parts/[0-9]*.dat))
|
|
|
|
BITMAPSWF:=$(patsubst parts/%.dat, bitmaps-wireframe/%.png, $(wildcard parts/[0-9]*.dat))
|
2014-09-10 10:10:02 +00:00
|
|
|
NORMALIZED:=$(patsubst parts/%.dat, normalized/%.dat, $(wildcard parts/*.dat))
|
2013-07-17 06:17:52 +00:00
|
|
|
|
2014-09-09 14:34:56 +00:00
|
|
|
all: parts
|
|
|
|
|
|
|
|
parts:
|
|
|
|
mkdir -p parts
|
|
|
|
python partsgen.py
|
2013-07-17 06:17:52 +00:00
|
|
|
|
2014-09-10 07:41:45 +00:00
|
|
|
montage.png: parts $(BITMAPS)
|
2013-07-17 06:17:52 +00:00
|
|
|
montage -label '%f' $(BITMAPS) $@
|
|
|
|
|
2014-09-10 07:41:45 +00:00
|
|
|
montage-wireframe.png: parts $(BITMAPSWF)
|
|
|
|
montage -label '%f' $(BITMAPSWF) $@
|
|
|
|
|
2013-07-17 06:17:52 +00:00
|
|
|
bitmaps/%.png: parts/%.dat
|
2014-09-09 14:34:56 +00:00
|
|
|
mkdir -p bitmaps
|
2013-07-17 18:30:29 +00:00
|
|
|
ldview -SaveActualSize=0 -SaveAlpha=1 -SaveWidth=300 -SaveHeight=300 -SaveZoomToFit=0 -SaveSnapShot=$@ $<
|
2014-09-09 14:34:56 +00:00
|
|
|
|
2014-09-10 07:41:45 +00:00
|
|
|
bitmaps-wireframe/%.png: parts/%.dat
|
|
|
|
mkdir -p bitmaps-wireframe
|
|
|
|
ldview -Wireframe=1 -SaveActualSize=0 -SaveAlpha=1 -SaveWidth=300 -SaveHeight=300 -SaveZoomToFit=0 -SaveSnapShot=$@ $<
|
|
|
|
|
2014-09-09 14:34:56 +00:00
|
|
|
clean:
|
2014-09-10 10:10:02 +00:00
|
|
|
rm -rf parts bitmaps normalized bitmaps-wireframe montage.png montage-wireframe.png
|
2014-09-09 14:34:56 +00:00
|
|
|
|
2014-09-10 10:10:02 +00:00
|
|
|
normalized/%.dat: parts/%.dat
|
|
|
|
mkdir -p normalized
|
|
|
|
python normalize.py $< normalized
|
|
|
|
|
|
|
|
test: $(NORMALIZED)
|
2014-09-09 14:34:56 +00:00
|
|
|
sha512sum --check parts.sha512
|