-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 799 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ASEPRITE_FILES := $(shell find . -type f -name '*.aseprite')
ASEPRITE_8BPP_FILES := $(filter %_8bpp.aseprite,$(ASEPRITE_FILES))
ASEPRITE_RGB_FILES := $(filter-out %_8bpp.aseprite,$(ASEPRITE_FILES))
PNG_8BPP_FILES := $(ASEPRITE_8BPP_FILES:.aseprite=.png)
PNG_RGB_FILES := $(ASEPRITE_RGB_FILES:.aseprite=.png)
PNG_FILES := $(PNG_8BPP_FILES) $(PNG_RGB_FILES)
.PHONY: all clean debug
%_8bpp.png: %_8bpp.aseprite
@echo "Processing 8BPP file: $<"
@aseprite --batch $< --all-layers \
--palette palette_8bpp.ase \
--ignore-layer grid \
--color-mode indexed --save-as $@
%.png: %.aseprite
@echo "Processing RGB file: $<"
@aseprite --batch $< --all-layers \
--ignore-layer grid \
--color-mode rgb --save-as $@
all: $(PNG_FILES)
@echo "All PNG files generated"
clean:
rm -f $(PNG_FILES)