Skip to content

Commit e0c75d3

Browse files
committed
Update Makefile
1 parent 5e76943 commit e0c75d3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
SHELL := /bin/bash
33
.PHONY: compose test
44

5+
build: clean theme
6+
go build -o ./monako github.com/snipem/monako/cmd/monako
7+
58
clean:
6-
rm ./monako || true
9+
-rm -r compose
10+
-rm ./monako
711

812
deps:
913
go mod download
@@ -14,9 +18,6 @@ optional_deps:
1418

1519
init: deps theme
1620

17-
build: clean
18-
go build -o ./monako github.com/snipem/monako/cmd/monako
19-
2021
theme: clean
2122
go generate cmd/monako/main.go
2223

@@ -58,7 +59,7 @@ run_prd: build secrets
5859

5960
run: build compose serve
6061

61-
run_local: build
62+
run_local: clean build
6263
# Runs locally, clones this git repo to use test data
6364
./monako -config test/config.local.yaml -menu-config test/config.menu.local.md
6465
$(MAKE) serve

0 commit comments

Comments
 (0)