Skip to content

Commit 0b0a1fd

Browse files
committed
fix some stuff in the makefile
1 parent 4d0f100 commit 0b0a1fd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

Makefile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ifneq ($(VERSION),dev)
44
LD_FLAGS += -s -w
55
endif
66

7-
CONFIG_GO_SRC_FILES = $(shell find ./config -name '*.go')
7+
CONFIG_GO_SRC_FILES = config/config.go $(shell find ./config -name '*.go')
88
FSM_DOT_FILES = $(shell find ./fsm -name '*.dot')
99
FSM_PNG_FILES = $(patsubst %.dot,%.png,$(FSM_DOT_FILES))
1010

@@ -13,12 +13,12 @@ GO_SRC_FILES = $(shell find . -name '*.go' | grep -v '^./config')
1313
all: ella $(FSM_PNG_FILES)
1414

1515
clean:
16-
rm ella fsm/*.png
16+
rm ella fsm/*.png config/config.go
1717

1818
install: 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
2727
fsm/%.png: fsm/%.dot
2828
dot -Tpng $< -o $@
2929

30-
config: $(CONFIG_GO_SRC_FILES)
31-
touch config
32-
3330
config/config: schema.json
3431
cat $< > $@
3532

0 commit comments

Comments
 (0)