File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ifneq ($(VERSION),dev)
44LD_FLAGS += -s -w
55endif
66
7- CONFIG_GO_SRC_FILES = $(shell find ./config -name '* .go')
7+ CONFIG_GO_SRC_FILES = config/config.go $(shell find ./config -name '* .go')
88FSM_DOT_FILES = $(shell find ./fsm -name '* .dot')
99FSM_PNG_FILES = $(patsubst % .dot,% .png,$(FSM_DOT_FILES ) )
1010
@@ -13,12 +13,12 @@ GO_SRC_FILES = $(shell find . -name '*.go' | grep -v '^./config')
1313all : ella $(FSM_PNG_FILES )
1414
1515clean :
16- rm ella fsm/* .png
16+ rm ella fsm/* .png config/config.go
1717
1818install : all
1919 @./install
2020
21- ella : $(GO_SRC_FILES ) config .version
21+ ella : $(GO_SRC_FILES ) $( CONFIG_GO_SRC_FILES ) .version
2222 go generate && \
2323 go build \
2424 -ldflags " $( LD_FLAGS) " \
@@ -27,9 +27,6 @@ ella: $(GO_SRC_FILES) config .version
2727fsm/% .png : fsm/% .dot
2828 dot -Tpng $< -o $@
2929
30- config : $(CONFIG_GO_SRC_FILES )
31- touch config
32-
3330config/config : schema.json
3431 cat $< > $@
3532
You can’t perform that action at this time.
0 commit comments