This repository was archived by the owner on Aug 10, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ ARCH = $(shell uname -m | sed -e 's/x86_64/amd64/g' -e 's/i686/i386/g')
33
33
PLATFORM = $(shell uname | tr '[:upper:]' '[:lower:]')
34
34
PLUGINS = $(sort $(dir $(wildcard $(BASE ) /plugins/* /) ) )
35
35
DEBUG = 0
36
+ DISTPKGDIR = 'target/package'
36
37
37
38
GO = go
38
39
GODOC = godoc
@@ -275,6 +276,17 @@ changelog: ## Outputs the changes since the last version committed
275
276
column -s " " -t | \
276
277
sed -e ' s/^/ * /'
277
278
279
+ $(DISTPKGDIR ) /nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz : app
280
+ $(info $(M ) building compressed binary of nginx-wrapper app for $(PLATFORM ) _$(ARCH ) )
281
+ $Q mkdir -p $(DISTPKGDIR )
282
+ $Q gzip --stdout --name --best $(OUTPUT_DIR ) /nginx-wrapper > $(DISTPKGDIR ) /nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz
283
+
284
+ $(DISTPKGDIR ) /nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz.sha256sum : $(DISTPKGDIR ) /nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz
285
+ $(info $(M ) writing SHA256 checksum of nginx-wrapper app)
286
+ $Q cd $(DISTPKGDIR ) ; sha256sum nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz > nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz.sha256sum
287
+
288
+ package : $(DISTPKGDIR ) /nginx-wrapper-$(PLATFORM ) _$(ARCH ) -$(VERSION ) .gz.sha256sum # # Builds packaged artifact of app
289
+
278
290
.PHONY : clean
279
291
clean : ; $(info $(M ) cleaning...) @ # # Cleanup everything
280
292
@chmod -R +w $(GOPATH ) || true
You can’t perform that action at this time.
0 commit comments