-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (39 loc) · 1.33 KB
/
Makefile
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
41
42
43
44
45
46
OUT_FN = $(RES_DIR)/Salmon.theme.json
RES_DIR = src/main/resources/
PGEN = palette-gen
.PRECIOUS: build/palette.%.yaml
.PRECIOUS: $(RES_DIR)/Restraint.%.yaml
night: build/Salmon.Night.theme.json resources/Restraint.Night.xml
cp $< $(OUT_FN)
cp build/palette.Night.html build/palette.html
cp $(RES_DIR)/Restraint.Night.xml $(RES_DIR)/Restraint.xml
twilight: build/Salmon.Twilight.theme.json $(RES_DIR)/Restraint.Twilight.xml
cp $< $(OUT_FN)
cp build/palette.Twilight.html build/palette.html
cp $(RES_DIR)/Restraint.Twilight.xml $(RES_DIR)/Restraint.xml
day: build/Salmon.Day.theme.json $(RES_DIR)/Restraint.Day.xml
cp $< $(OUT_FN)
cp build/palette.Day.html build/palette.html
cp $(RES_DIR)/Restraint.Day.xml $(RES_DIR)/Restraint.xml
build/palette.%.yaml: src/colorspec.yaml
$(PGEN) \
palette \
--spec src/colorspec.yaml \
--out build/palette.yaml \
$* \
--html --cone
$(RES_DIR)/Restraint.%.xml: build/palette.%.yaml src/scheme.yaml
echo "Processing $< to $@, stem is $*"
$(PGEN) \
jb_scheme \
--spec src/scheme.yaml \
--palette build/palette.$*.yaml \
--out $(RES_DIR)/Restraint.$*.xml
build/Salmon.%.theme.json: build/palette.%.yaml src/theme.yaml
echo "Processing $< to $@, stem is $*"
$(PGEN) \
jb_theme \
--spec src/theme.yaml \
--palette build/palette.$*.yaml \
--out build/Salmon.$*.theme.json \
--inline-colors