From: Joseph C. Lehner Date: Mon, 8 Feb 2016 15:30:03 +0000 (+0100) Subject: Create zip files when release-building X-Git-Tag: v0.9^0 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bf73c3919c505ff973a3857b6bdc4ebbc65e227;p=oweals%2Fnmrpflash.git Create zip files when release-building --- diff --git a/Makefile b/Makefile index cb2be32..ef9634a 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ CC ?= gcc PREFIX ?= /usr/local -CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(shell git describe --always)\" +VERSION = $(shell git describe --always) +CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\" LIBS = -lpcap -.PHONY: clean install release release/osx release/linux +.PHONY: clean install release release/osx release/linux release/win32 nmrpflash: nmrp.o tftp.o ethsock.o main.o $(CC) $(CFLAGS) -o nmrpflash nmrp.o tftp.o ethsock.o main.o $(LIBS) @@ -28,9 +29,13 @@ install: nmrpflash release/osx: CFLAGS="-arch i686 -arch x86_64" make release + zip nmrpflash-osx.zip nmrpflash release/linux: release - cp nmrpflash binaries/linux/ + zip nmrpflash-linux.zip nmrpflash + +release/win32: + zip nmrpflash-win32.zip nmrpflash.exe release: clean nmrpflash strip nmrpflash