mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
use @prefix@ for install dest
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@54 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
11
Makefile.in
11
Makefile.in
@@ -1,11 +1,8 @@
|
||||
ifneq ($(MAKE),gmake)
|
||||
# If you got an ERROR on the previous line, then you aren't using gmake
|
||||
endif
|
||||
|
||||
CXX=g++
|
||||
CXXFLAGS=@CXXFLAGS@
|
||||
INCLUDES=@INCLUDES@
|
||||
LIBS=@LIBS@
|
||||
prefix=@prefix@
|
||||
|
||||
OBJS=main.o znc.o User.o IRCSock.o UserSock.o DCCBounce.o DCCSock.o Chan.o Nick.o Server.o Modules.o md5.o Buffer.o Utils.o
|
||||
SRCS=main.cpp znc.cpp User.cpp IRCSock.cpp UserSock.cpp DCCBounce.cpp DCCSock.cpp Chan.cpp Nick.cpp Server.cpp Modules.cpp md5.cpp Buffer.cpp Utils.cpp
|
||||
@@ -36,6 +33,6 @@ clean:
|
||||
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $*.o $*.cpp
|
||||
|
||||
install: znc @MODTARGET@
|
||||
mkdir -p $(DEST)
|
||||
install -m 0711 znc $(DEST)
|
||||
(cd modules; $(MAKE) DEST=$(DEST))
|
||||
mkdir -p $(prefix)
|
||||
install -m 0711 znc $(prefix)
|
||||
(cd modules; $(MAKE))
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
ifneq ($(MAKE),gmake)
|
||||
# If you got an ERROR on the previous line, then you aren't using gmake
|
||||
endif
|
||||
|
||||
prefix=@prefix@
|
||||
CXX=g++
|
||||
CXXFLAGS=@CXXFLAGS@
|
||||
INCLUDES=@INCLUDES@ -I..
|
||||
@@ -17,8 +14,8 @@ depend::
|
||||
g++ -M $(CXXFLAGS) $(SRCS) $(INCLUDES) >.depend
|
||||
|
||||
install: all
|
||||
mkdir -p $(DEST)/modules
|
||||
install -m 0711 *.so $(DEST)/modules
|
||||
mkdir -p $(prefix)/modules
|
||||
install -m 0711 *.so $(prefix)/modules
|
||||
|
||||
clean:
|
||||
rm -rf *.so *.o core core.*
|
||||
|
||||
Reference in New Issue
Block a user