mirror of
https://github.com/SeanOMik/znc-push.git
synced 2024-12-18 05:19:40 +00:00
97791061a7
When building with a dirty working copy, that should be made clear in the build version. This avoids building from a dirty working copy based directly from a tag, where it's not obvious that the build contains local modifications that have not been committed.
12 lines
301 B
Makefile
12 lines
301 B
Makefile
version := $(shell git describe --dirty)
|
|
|
|
push.so: push.cpp
|
|
sed -i -e "s|PUSHVERSION \".*\"|PUSHVERSION \"$(version)\"|" push.cpp
|
|
znc-buildmod push.cpp
|
|
sed -i -e "s|PUSHVERSION \".*\"|PUSHVERSION \"dev\"|" push.cpp
|
|
|
|
install: push.so
|
|
cp push.so $(HOME)/.znc/modules/push.so
|
|
|
|
clean:
|
|
-rm -f push.so
|