From 0bf73c3919c505ff973a3857b6bdc4ebbc65e227 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Mon, 8 Feb 2016 16:30:03 +0100 Subject: [PATCH] Create zip files when release-building --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 -- 2.25.1