Merge pull request #930 from majestrate/master-branch-use-release-builds-2019-11-26

make master build release by default
pull/939/head
Jeff 5 years ago committed by GitHub
commit fac0b574a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save