mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Merge pull request #930 from majestrate/master-branch-use-release-builds-2019-11-26
make master build release by default
This commit is contained in:
commit
fac0b574a2
1 changed files with 14 additions and 8 deletions
22
Makefile
22
Makefile
|
@ -1,9 +1,20 @@
|
|||
all: test
|
||||
|
||||
SIGN = gpg --sign --detach
|
||||
|
||||
REPO := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
|
||||
NO_GIT := $(shell test -e $(REPO)/.git/ || echo 1)
|
||||
ifeq ($(NO_GIT),1)
|
||||
all: release
|
||||
else
|
||||
GIT_BRANCH ?= $(shell test -e $(REPO)/.git/ && git rev-parse --abbrev-ref HEAD)
|
||||
ifeq ($(GIT_BRANCH),master)
|
||||
all: release
|
||||
else
|
||||
all: test
|
||||
endif
|
||||
endif
|
||||
|
||||
BUILD_ROOT = $(REPO)/build
|
||||
|
||||
DESTDIR ?=
|
||||
|
@ -151,18 +162,13 @@ debug: debug-configure
|
|||
$(MAKE) -C $(BUILD_ROOT)
|
||||
cp $(EXE) $(REPO)/lokinet
|
||||
|
||||
|
||||
release-compile: release-configure
|
||||
$(MAKE) -C $(BUILD_ROOT)
|
||||
strip $(EXE)
|
||||
cp $(EXE) $(REPO)/lokinet
|
||||
|
||||
$(TARGETS): release-compile
|
||||
|
||||
%.sig: $(TARGETS)
|
||||
$(SIGN) $*
|
||||
|
||||
release: $(SIGS)
|
||||
release: $(TARGETS)
|
||||
|
||||
shadow-configure: clean
|
||||
mkdir -p $(BUILD_ROOT)
|
||||
|
|
Loading…
Reference in a new issue