55
66# Uses Semantic Versioning scheme - http://semver.org/
77VERSION_MAJOR =0
8- VERSION_MINOR =3
8+ VERSION_MINOR =4
99
1010# Last part of version number (patch) is incremented automatically from Git tags
1111LAST_PATCH_VERSION: =
$(shell git ls-remote [email protected] :joewalnes/websocketd.git \ @@ -21,7 +21,7 @@ LAST_PATCH_VERSION:=$(shell git ls-remote
[email protected] :joewalnes/websocketd.gi
2121VERSION_PATCH: =$(or $(LAST_PATCH_VERSION ) ,0)
2222RELEASE_VERSION =$(VERSION_MAJOR ) .$(VERSION_MINOR ) .$(VERSION_PATCH )
2323
24- GO_VERSION =1.11.5
24+ GO_VERSION =1.15.7
2525PLATFORMS =linux_amd64 linux_386 linux_arm linux_arm64 darwin_amd64 freebsd_amd64 freebsd_386 windows_386 windows_amd64 openbsd_386 openbsd_amd64 solaris_amd64
2626
2727
@@ -61,6 +61,9 @@ FLAGS_openbsd_386 = GOOS=openbsd GOARCH=386 CGO_ENABLED=0
6161FLAGS_openbsd_amd64 = GOOS=openbsd GOARCH=amd64 CGO_ENABLED=0
6262FLAGS_solaris_amd64 = GOOS=solaris GOARCH=amd64 CGO_ENABLED=0
6363
64+ EXTENSION_windows_386 = .exe
65+ EXTENSION_windows_amd64 = .exe
66+
6467all : build
6568
6669localgo : $(GO_DIR ) /bin/go
@@ -85,7 +88,11 @@ out/$(RELEASE_VERSION)/%/websocketd.exe: ../*.go ../libwebsocketd/*.go $(GO_DIR)
8588
8689out/$(RELEASE_VERSION ) /websocketd-$(RELEASE_VERSION ) -% .zip : out/$(RELEASE_VERSION ) /% /websocketd
8790 rm -f $@
88- zip -j $@ out/$(RELEASE_VERSION ) /$* /* ../{README.md,LICENSE,CHANGES}
91+ zip -j $@ $< ../{README.md,LICENSE,CHANGES}
92+
93+ out/$(RELEASE_VERSION ) /websocketd-$(RELEASE_VERSION ) -windows_% .zip : out/$(RELEASE_VERSION ) /windows_% /websocketd.exe
94+ rm -f $@
95+ zip -j $@ $< ../{README.md,LICENSE,CHANGES}
8996
9097
9198BINARIES = $(foreach PLATFORM,$(PLATFORMS ) ,out/$(RELEASE_VERSION ) /$(PLATFORM ) /websocketd$(EXTENSION_$(PLATFORM ) ) )
@@ -97,7 +104,7 @@ binaries: $(BINARIES)
97104
98105build : out/$(RELEASE_VERSION ) /CHECKSUMS
99106
100- out/$(RELEASE_VERSION ) /CHECKSUMS : $(BINARIES ) $(ZIPS ) $(DEBS ) $(RPMS )
107+ out/$(RELEASE_VERSION ) /CHECKSUMS : $(BINARIES ) $(ZIPS ) $(DEBS ) $(RPMS )
101108 sha256sum $^ | sed -e ' s/out\/$(RELEASE_VERSION)\///' > $@
102109
103110
@@ -117,15 +124,15 @@ out/$(RELEASE_VERSION)/websocketd-$(RELEASE_VERSION)_i386.deb: $(GO_UNPACKED) ou
117124 cp out/$(RELEASE_VERSION ) /linux_386/websocketd out/$(RELEASE_VERSION ) /deb32/usr/bin/
118125 cp ../{LICENSE,AUTHORS,CHANGES,README.md} out/$(RELEASE_VERSION ) /deb32/usr/share/doc/websocketd-$(RELEASE_VERSION )
119126 cat websocketd.man | gzip > out/$(RELEASE_VERSION ) /deb32/usr/share/man/man1/websocket.1.gz
120- fpm -f -s dir -t deb -a i386 -n websocketd -v $(RELEASE_VERSION ) -C out/$(RELEASE_VERSION ) /deb32/ -p out/$(RELEASE_VERSION ) /websocketd-VERSION_ARCH.deb $(BASEFPM ) $(DEB_FPM ) usr/
127+ fpm -f -s dir -t deb -a i386 -n websocketd -v $(RELEASE_VERSION ) -C out/$(RELEASE_VERSION ) /deb32/ -p out/$(RELEASE_VERSION ) /websocketd-VERSION_ARCH.deb --deb-no-default-config-files $(BASEFPM ) $(DEB_FPM ) usr/
121128 rm -rf out/$(RELEASE_VERSION ) /deb32/
122129
123130out/$(RELEASE_VERSION ) /websocketd-$(RELEASE_VERSION ) _amd64.deb : $(GO_UNPACKED ) out/$(RELEASE_VERSION ) /linux_amd64/websocketd
124131 mkdir -p out/$(RELEASE_VERSION ) /deb64/{usr/bin,usr/share/man/man1,usr/share/doc/websocketd-$(RELEASE_VERSION ) }
125132 cp out/$(RELEASE_VERSION ) /linux_amd64/websocketd out/$(RELEASE_VERSION ) /deb64/usr/bin/
126133 cp ../{LICENSE,AUTHORS,CHANGES,README.md} out/$(RELEASE_VERSION ) /deb64/usr/share/doc/websocketd-$(RELEASE_VERSION )
127134 cat websocketd.man | gzip > out/$(RELEASE_VERSION ) /deb64/usr/share/man/man1/websocket.1.gz
128- fpm -f -s dir -t deb -a amd64 -n websocketd -v $(RELEASE_VERSION ) -C out/$(RELEASE_VERSION ) /deb64/ -p out/$(RELEASE_VERSION ) /websocketd-VERSION_ARCH.deb $(BASEFPM ) $(DEB_FPM ) usr/
135+ fpm -f -s dir -t deb -a amd64 -n websocketd -v $(RELEASE_VERSION ) -C out/$(RELEASE_VERSION ) /deb64/ -p out/$(RELEASE_VERSION ) /websocketd-VERSION_ARCH.deb --deb-no-default-config-files $(BASEFPM ) $(DEB_FPM ) usr/
129136 rm -rf out/$(RELEASE_VERSION ) /deb64/
130137
131138out/$(RELEASE_VERSION ) /websocketd.$(RELEASE_VERSION ) .x86_64.rpm : $(GO_UNPACKED ) out/$(RELEASE_VERSION ) /linux_amd64/websocketd
0 commit comments