also create wireframe in Makefile
This commit is contained in:
parent
c8927e57e8
commit
4b5a255ddc
1 changed files with 12 additions and 4 deletions
16
Makefile
16
Makefile
|
@ -1,4 +1,5 @@
|
|||
BITMAPS:=$(patsubst parts/%.dat, bitmaps/%.png, $(wildcard parts/*.dat))
|
||||
BITMAPSWF:=$(patsubst parts/%.dat, bitmaps-wireframe/%.png, $(wildcard parts/*.dat))
|
||||
|
||||
all: parts
|
||||
|
||||
|
@ -6,15 +7,22 @@ parts:
|
|||
mkdir -p parts
|
||||
python partsgen.py
|
||||
|
||||
montage.png: $(BITMAPS)
|
||||
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=$@ $<
|
||||
|
||||
clean:
|
||||
rm -rf parts bitmaps
|
||||
bitmaps-wireframe/%.png: parts/%.dat
|
||||
mkdir -p bitmaps-wireframe
|
||||
ldview -Wireframe=1 -SaveActualSize=0 -SaveAlpha=1 -SaveWidth=300 -SaveHeight=300 -SaveZoomToFit=0 -SaveSnapShot=$@ $<
|
||||
|
||||
test:
|
||||
clean:
|
||||
rm -rf parts bitmaps bitmaps-wireframe montage.png
|
||||
|
||||
test: parts montage.png montage-wireframe.png
|
||||
sha512sum --check parts.sha512
|
||||
|
|
Loading…
Reference in a new issue