znc-push/Makefile

21 lines
461 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
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
2011-09-28 20:26:24 +00:00
clean:
2011-09-29 13:30:06 +00:00
-rm -f push.so