-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 854 Bytes
/
Makefile
File metadata and controls
28 lines (23 loc) · 854 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
.SILENT:
.ONESHELL:
.PHONY: all instructions-icons
all: instructions-icons instruction-locale files.lua
true
files.lua: Makefile
echo "== Building file list"
TARGET=$@
FOLDER=$(dir $(abspath $@))
MODNAME=__$$(cat $(dir $(abspath $@))info.json | jq -r ".name")__
echo $$TARGET $$FOLDER $$MODNAME
echo "return {"> $@
prefix() { while read line; do echo "${1}${line}"; done; }
suffix() { while read line; do echo "${line}${1}"; done; }
find . -not -path '*/\.*' -print | cut -b 2- | tail -n +2 | while read line; do echo "\t[\"$$MODNAME$$line\"]=true,"; done >> $@
echo "}">> $@
instructions-icons:
echo "== Building instructions icons"
cd graphics/icons/instructions;$(MAKE) all --no-print-directory
instruction-locale:
echo "== Building instructions locale"
#cat $< | grep "\-\-@@" | cut -b 6- > locale/en/instructions.cfg
#echo done