znc-push/Makefile

21 lines
467 B
Makefile
Raw Normal View History

version := $(shell git describe --dirty)
curl=no
ifneq ($(curl),no)
flags=-DUSE_CURL -lcurl
else
flags=
endif
2011-09-29 13:30:06 +00:00
push.so: push.cpp
2015-09-21 19:57:16 +00:00
sed -i "" -e "s|PUSHVERSION \".*\"|PUSHVERSION \"$(version)\"|" push.cpp
CXXFLAGS="$(CXXFLAGS) $(flags)" LIBS="$(LIBS) $(flags)" znc-buildmod push.cpp
2015-09-21 19:57:16 +00:00
sed -i "" -e "s|PUSHVERSION \".*\"|PUSHVERSION \"dev\"|" push.cpp
install: push.so
mkdir -p $(HOME)/.znc/modules/
cp push.so $(HOME)/.znc/modules/push.so
2011-09-28 20:26:24 +00:00
clean:
2011-09-29 13:30:06 +00:00
-rm -f push.so