Skip to content

Commit

Permalink
Put version in zip file name
Browse files Browse the repository at this point in the history
  • Loading branch information
jclehner committed Aug 12, 2016
1 parent d1dc30a commit e77096c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CC ?= gcc
PREFIX ?= /usr/local
VERSION = $(shell git describe --always)
VERSION = $(shell git describe --always | tail -c +2)
LIBS = -lpcap
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"v$(VERSION)\"
LDFLAGS += $(LIBS)

.PHONY: clean install release release/osx release/linux release/win32
Expand Down Expand Up @@ -30,13 +30,13 @@ install: nmrpflash

release/osx:
CFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.6" make release
zip nmrpflash-osx.zip nmrpflash
zip nmrpflash-$(VERSION)-osx.zip nmrpflash

release/linux: release
zip nmrpflash-linux.zip nmrpflash
zip nmrpflash-$(VERSION)-linux.zip nmrpflash

release/win32:
zip nmrpflash-win32.zip nmrpflash.exe
zip nmrpflash-$(VERSION)-win32.zip nmrpflash.exe

release: clean nmrpflash
strip nmrpflash

0 comments on commit e77096c

Please sign in to comment.