-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschems.mk
40 lines (30 loc) · 1.01 KB
/
schems.mk
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
30
31
32
33
34
35
36
37
38
39
40
MSCH := pictoschem
XDG_DATA_HOME ?= $(HOME)/.local/share
SCHEMATICS := $(XDG_DATA_HOME)/Mindustry/schematics
# Android, Termux
PACKAGE := io.anuke.mindustry.be
ifeq ($(shell uname -o),Android)
SCHEMATICS := /sdcard/Android/data/$(PACKAGE)/files/schematics
endif
# Exclude block portions, unit legs, etc.
dist := clear-router colossus double-router explosive-router \
incinerouter inverted-router op-router titanium-double-router \
alien-router rainbow-router
power := arc-router electric-router moderouter solar-router surge-router \
phase-router fusion-router
prod := sprouter routerfruit
blocks := $(dist:%=distribution/%) $(power:%=power/%)\
$(prod:%=production/%) $(logic:%=logic/%) \
units/router-chainer
units := reverout routerpede sexy-router
schems := $(blocks:%=blocks/%) $(units:%=units/%)
schems := $(schems:%=schems/%.msch)
all: $(schems)
schems/%.msch: sprites/%.png
@mkdir -p `dirname $@`
@printf "MSCH\t%s\n" $@
@$(MSCH) -o $@ -i $^
clean:
rm -rf schems
install: all
cp -rf $(schems) $(SCHEMATICS)/