-
Notifications
You must be signed in to change notification settings - Fork 673
/
makefile
38 lines (27 loc) · 905 Bytes
/
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
#
# Make the various output format files for the color list
#
DATAFILE = input/wiki-color-list.text
SCRIPT = format-colors
COMMAND = python $(SCRIPT)
OUT=output
BUILT_SOURCES_BASE = colors.c colors.conf colors.csv colors.html colors.json colors.sexp colors.xml
BUILT_SOURCES = $(addprefix $(OUT)/,$(BUILT_SOURCES_BASE))
all: $(BUILT_SOURCES)
$(OUT)/colors.c: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f ccode -o $@ $<
$(OUT)/colors.conf: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f conf -o $@ $<
$(OUT)/colors.csv: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f csv -o $@ $<
$(OUT)/colors.html: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f html -o $@ $<
$(OUT)/colors.json: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f json -o $@ $<
$(OUT)/colors.sexp: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f sexp -o $@ $<
$(OUT)/colors.xml: $(DATAFILE) $(SCRIPT)
$(COMMAND) -f xml -o $@ $<
clean:
rm -f $(BUILT_SOURCES) printcolors
.PHONY: all clean