Skip to content

Commit 974fcc9

Browse files
author
Marek
committed
Include clean step in makefile build steps
1 parent ac780b2 commit 974fcc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ GOARCH=amd64
66
BINARY_NAME=react-rm
77

88
.PHONY: build
9-
build:
9+
build: clean
1010
$(GOBUILD) -o bin/$(BINARY_NAME) -v $(GOPKG)
1111

1212
.PHONY: run
1313
run:
1414
$(GORUN) $(GOPKG)
1515

1616
.PHONY: build-all
17-
build-all:
18-
echo "Cross-compiling for macOS and Linux (amd64)"
17+
build-all: clean
18+
@echo "Cross-compiling for macOS and Linux (amd64)"
1919
GOOS=linux GOARCH=$(GOARCH) $(GOBUILD) -o bin/$(BINARY_NAME)_linux -v $(GOPKG)
2020
GOOS=darwin GOARCH=$(GOARCH) $(GOBUILD) -o bin/$(BINARY_NAME)_darwin -v $(GOPKG)
2121

0 commit comments

Comments
 (0)