projects
/
koperkapel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ed3e525
)
refactored to fix bunker dependency regeneration
author
adrianna
<adrianna.pinska@gmail.com>
Thu, 3 Mar 2016 15:19:49 +0000
(17:19 +0200)
committer
adrianna
<adrianna.pinska@gmail.com>
Thu, 3 Mar 2016 15:19:49 +0000
(17:19 +0200)
koperkapel/images/Makefile
patch
|
blob
|
history
diff --git
a/koperkapel/images/Makefile
b/koperkapel/images/Makefile
index d5aa40507df3b5e4ef0cda5163c951d714e63a6e..1645e4bfb16728e4069bd63f8bfb8e8343399712 100644
(file)
--- 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_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
# Vector images to rasterize without resizing
@@
-54,9
+54,9
@@
$(foreach simpledir,$(SIMPLE_DIRS),$(eval $(call simple,$(simpledir))))
# Bitmap tile rule
define btile
# 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))))
endef
$(foreach tiledir,$(BTILE_DIRS),$(eval $(call btile,$(tiledir))))