Merge pull request #1824 from owncloud/update-build-target

Update Build Targets
This commit is contained in:
Willy Kloucek authored and GitHub committed 2021-03-22 08:41:20 +01:00
commit 1fa2c5f3a0
2 files changed
+15 -1

No files matched your search

+7 -1
View File
@@ -94,8 +94,14 @@ go-coverage:
install: $(SOURCES)
go install -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/$(NAME)
.PHONY: build-all
build-all: build build-debug
.PHONY: build
build: $(BIN)/$(EXECUTABLE) $(BIN)/$(EXECUTABLE)-debug
build: $(BIN)/$(EXECUTABLE)
.PHONY: build-debug
build-debug: $(BIN)/$(EXECUTABLE)-debug
$(BIN)/$(EXECUTABLE): $(SOURCES)
$(GOBUILD) -v -tags '$(TAGS)' -ldflags '$(LDFLAGS)' -o $@ ./cmd/$(NAME)
@@ -0,0 +1,8 @@
Enhancement: Add new build targets
Make build target `build` used to build a binary twice, the second occurrence having symbols for debugging. We split this step in two and added `build-all` and `build-debug` targets.
- `build-all` now behaves as the previous `build` target, it will generate 2 binaries, one for debug.
- `build-debug` will build a single binary for debugging.
https://github.com/owncloud/ocis/pull/1824