mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-20 21:34:35 -04:00
Merge pull request #1824 from owncloud/update-build-target
Update Build Targets
This commit is contained in:
2 files changed
+15
-1
No files matched your search
+7
-1
@@ -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
|
||||
Reference in new issue
Block a user