znc-push/Makefile
John Reese 97791061a7 Update build version to flag a dirty working copy
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.
2013-08-27 16:45:39 -07:00

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