Create zip files when release-building v0.9
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 8 Feb 2016 15:30:03 +0000 (16:30 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 8 Feb 2016 15:30:03 +0000 (16:30 +0100)
Makefile

index cb2be3250b9f65ae3dd4608c0d399dc25dadcb2c..ef9634a293e2fab4f1010ecdd389ff0c0bcf8f7d 100644 (file)
--- 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