mirror of https://github.com/SeanOMik/znc-push.git
21 lines
467 B
Makefile
21 lines
467 B
Makefile
version := $(shell git describe --dirty)
|
|
curl=no
|
|
|
|
ifneq ($(curl),no)
|
|
flags=-DUSE_CURL -lcurl
|
|
else
|
|
flags=
|
|
endif
|
|
|
|
push.so: push.cpp
|
|
sed -i "" -e "s|PUSHVERSION \".*\"|PUSHVERSION \"$(version)\"|" push.cpp
|
|
CXXFLAGS="$(CXXFLAGS) $(flags)" LIBS="$(LIBS) $(flags)" znc-buildmod push.cpp
|
|
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
|
|
|
|
clean:
|
|
-rm -f push.so
|