From 0be1258135e37e4caf00f9ac8cc4d0aef18226db Mon Sep 17 00:00:00 2001 From: adrianna Date: Thu, 3 Mar 2016 17:19:49 +0200 Subject: [PATCH] refactored to fix bunker dependency regeneration --- koperkapel/images/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koperkapel/images/Makefile b/koperkapel/images/Makefile index d5aa405..1645e4b 100644 --- a/koperkapel/images/Makefile +++ b/koperkapel/images/Makefile @@ -10,7 +10,7 @@ TILE_PNGS=$(patsubst $(VPATH)/vector/%.svg, %.png, $(TILE_SVGS)) BTILE_DIRS=wall floor tunnel underground BTILE_SRC=$(shell find $(patsubst %, $(VPATH)/bitmap/%, $(BTILE_DIRS)) -name "*.png") -BTILE_PNGS=$(patsubst $(VPATH)/bitmap/%, %, $(BTILE_SRC)) +BTILE_PNGS=$(patsubst $(VPATH)/bitmap/%, bunker/%, $(BTILE_SRC)) # Vector images to rasterize without resizing @@ -54,9 +54,9 @@ $(foreach simpledir,$(SIMPLE_DIRS),$(eval $(call simple,$(simpledir)))) # Bitmap tile rule define btile -$(1)/%.png: bitmap/$(1)/%.png - @mkdir -p `dirname bunker/$$@` - @convert $$< -resize 64x64 bunker/$$@ +bunker/$(1)/%.png: bitmap/$(1)/%.png + @mkdir -p `dirname $$@` + @convert $$< -resize 64x64 $$@ endef $(foreach tiledir,$(BTILE_DIRS),$(eval $(call btile,$(tiledir)))) -- 2.34.1