Merge pull request #35 from real-dam/standalone-version
support compiling outside of git checkout
This commit is contained in:
commit
7f75f8bebc
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
CC ?= gcc
|
||||
PREFIX ?= /usr/local
|
||||
VERSION = $(shell git describe --always | tail -c +2)
|
||||
VERSION := $(shell if [ -d .git ] && which git 2>&1 > /dev/null; then git describe --always | tail -c +2; else echo $$STANDALONE_VERSION; fi)
|
||||
LIBS = -lpcap
|
||||
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
|
||||
LDFLAGS += $(LIBS)
|
||||
|
|
Loading…
Add table
Reference in a new issue