forked from jpnurmi/znc-clientbuffer
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (15 loc) · 644 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (15 loc) · 644 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
PREFIX ?= /usr/local
LIBDIR ?= /lib
all: clientbuffer.so
clientbuffer.so : clientbuffer.cpp $(PREFIX)/bin/znc-buildmod
$(PREFIX)/bin/znc-buildmod clientbuffer.cpp
clean:
rm -f clientbuffer.so
install: clientbuffer.so
install -Dm 755 clientbuffer.so $(DESTDIR)$(PREFIX)$(LIBDIR)/znc/clientbuffer.so
$(PREFIX)/bin/znc-buildmod :
@echo "Did not find a znc-buildmod binary at $(PREFIX)/bin/znc-buildmod."
@echo "Is PREFIX corretly set? ($(PREFIX))"
@if [ "$(PREFIX)" = /usr ] ; then echo "Maybe try rerunning with PREFIX=/usr/local" ; fi
@if [ "$(PREFIX)" = /usr/local ] ; then echo "Maybe try rerunning with PREFIX=/usr" ; fi
@exit 1