mirror of
https://github.com/wneessen/apg-go.git
synced 2024-11-22 13:50:49 +01:00
Added ZIPing to Makefile
This commit is contained in:
parent
49fa6adc3d
commit
adc21f31ea
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -30,6 +30,7 @@ all-build: $(addprefix build-, $(subst /,_, $(ALL_PLATFORMS)))
|
|||
OUTBINS = $(foreach bin,$(BINS),bin/v$(VERSION)/$(OS)_$(ARCH)/$(bin)$(BIN_EXTENSION))
|
||||
build: $(OUTBINS)
|
||||
BUILD_DIRS := bin/v$(VERSION)/$(OS)_$(ARCH) \
|
||||
bin/zip-files/v$(VERSION) \
|
||||
.go/bin/v$(VERSION)/$(OS)_$(ARCH) \
|
||||
.go/cache
|
||||
|
||||
|
@ -54,6 +55,7 @@ $(STAMPS): go-build
|
|||
@echo "binary: $(OUTBIN)"
|
||||
@if ! cmp -s .go/$(OUTBIN) $(OUTBIN); then \
|
||||
mv .go/$(OUTBIN) $(OUTBIN); \
|
||||
zip -9 ./bin/zip-files/v$(VERSION)/apg_v$(VERSION)_$(OS)_$(ARCH).zip $(OUTBIN) \
|
||||
date >$@; \
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue