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:
imaginos
2005-03-31 20:49:24 +00:00
parent 17526433ce
commit 97783315c9
2 changed files with 7 additions and 13 deletions

View File

@@ -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))

View File

@@ -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.*