mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #179 from larsks/feature/version_h
change handling of embedded version information
This commit is contained in:
commit
878af545ac
9
Makefile
9
Makefile
|
@ -1,4 +1,4 @@
|
||||||
version := $(shell git describe --dirty)
|
version = $(shell git describe --dirty || echo dev)
|
||||||
curl=no
|
curl=no
|
||||||
|
|
||||||
ifneq ($(curl),no)
|
ifneq ($(curl),no)
|
||||||
|
@ -7,10 +7,11 @@ else
|
||||||
flags=
|
flags=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
all: push.so
|
||||||
|
|
||||||
push.so: push.cpp
|
push.so: push.cpp
|
||||||
sed -i "" -e "s|PUSHVERSION \".*\"|PUSHVERSION \"$(version)\"|" push.cpp
|
CXXFLAGS="$(CXXFLAGS) -DPUSHVERSION=\"$(version)\" $(flags)" LIBS="$(LIBS) $(flags)" \
|
||||||
CXXFLAGS="$(CXXFLAGS) $(flags)" LIBS="$(LIBS) $(flags)" znc-buildmod push.cpp
|
znc-buildmod push.cpp
|
||||||
sed -i "" -e "s|PUSHVERSION \".*\"|PUSHVERSION \"dev\"|" push.cpp
|
|
||||||
|
|
||||||
install: push.so
|
install: push.so
|
||||||
mkdir -p $(HOME)/.znc/modules/
|
mkdir -p $(HOME)/.znc/modules/
|
||||||
|
|
Loading…
Reference in New Issue