summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-12-01 08:28:43 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-01 15:28:43 +0800
commit2932042a6d6dcf8d4f74de0abce688190f2925b9 (patch)
tree6091e22f8b9e5cffa9275af3ab447467dbe17777 /Makefile
parentbf0edcbdeaf207f2a8cae475a58f2ed66ae22d25 (diff)
downloadgitea-2932042a6d6dcf8d4f74de0abce688190f2925b9.tar.gz
gitea-2932042a6d6dcf8d4f74de0abce688190f2925b9.zip
Get rid of bin folder within makefile, enabled TiDB (#319)
* Get rid of the bin folder within the build process Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped latest make task, it is unused Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Added tidb tag to drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the cert build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped useless minwinsvc build tag Signed-off-by: Thomas Boerger <thomas@webhippie.de> * Dropped the useless build tags from drone config Signed-off-by: Thomas Boerger <thomas@webhippie.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 3 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 5676a836bf..b0f6f70799 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,4 @@
DIST := dist
-BIN := bin
-
EXECUTABLE := gitea
IMPORT := code.gitea.io/gitea
@@ -35,7 +33,7 @@ all: build
.PHONY: clean
clean:
go clean -i ./...
- rm -rf $(BIN) $(DIST)
+ rm -rf $(EXECUTABLE) $(DIST)
.PHONY: fmt
fmt:
@@ -99,32 +97,17 @@ release-build:
@which xgo > /dev/null; if [ $$? -ne 0 ]; then \
go get -u github.com/karalabe/xgo; \
fi
- xgo -dest $(BIN) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets '$(TARGETS)' -out $(EXECUTABLE)-$(VERSION) $(IMPORT)
+ xgo -dest $(DIST)/binaries -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -targets '$(TARGETS)' -out $(EXECUTABLE)-$(VERSION) $(IMPORT)
.PHONY: release-copy
release-copy:
mkdir -p $(DIST)/release
- $(foreach file,$(wildcard $(BIN)/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
+ $(foreach file,$(wildcard $(DIST)/binaries/$(EXECUTABLE)-*),cp $(file) $(DIST)/release/$(notdir $(file));)
.PHONY: release-check
release-check:
cd $(DIST)/release; $(foreach file,$(wildcard $(DIST)/release/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
-.PHONY: latest
-latest: release-build latest-copy latest-check
-
-.PHONY: latest-copy
-latest-copy:
- mkdir -p $(DIST)/latest
- $(foreach file,$(wildcard $(BIN)/$(EXECUTABLE)-*),cp $(file) $(DIST)/latest/$(subst $(EXECUTABLE)-$(VERSION),$(EXECUTABLE)-latest,$(notdir $(file)));)
-
-.PHONY: latest-check
-latest-check:
- cd $(DIST)/latest; $(foreach file,$(wildcard $(DIST)/latest/$(EXECUTABLE)-*),sha256sum $(notdir $(file)) > $(notdir $(file)).sha256;)
-
-.PHONY: publish
-publish: release latest
-
.PHONY: bindata
bindata: modules/bindata/bindata.go