mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
make it so system properly deployed
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@61 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-3
@@ -33,6 +33,6 @@ clean:
|
||||
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $*.o $*.cpp
|
||||
|
||||
install: znc @MODTARGET@
|
||||
mkdir -p $(prefix)
|
||||
install -m 0711 znc $(prefix)
|
||||
(cd modules; $(MAKE))
|
||||
mkdir -p $(DEST)$(prefix)/bin
|
||||
install -m 0711 znc $(DEST)$(prefix)/bin
|
||||
(cd modules; $(DEST)$(MAKE))
|
||||
|
||||
@@ -2826,6 +2826,8 @@ fi
|
||||
if test -n "$ISSUN"; then
|
||||
MODFLAGS="$MODFLAGS -mimpure-text"
|
||||
fi
|
||||
|
||||
appendCXX "-D_MODDIR_=\\\"${prefix}/share/znc\\\""
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
@@ -65,6 +65,8 @@ if test "$MODULES" = "yes"; then
|
||||
if test -n "$ISSUN"; then
|
||||
MODFLAGS="$MODFLAGS -mimpure-text"
|
||||
fi
|
||||
|
||||
appendCXX "-D_MODDIR_=\\\"${prefix}/share/znc\\\""
|
||||
fi
|
||||
|
||||
#
|
||||
|
||||
+3
-3
@@ -14,13 +14,13 @@ depend::
|
||||
g++ -M $(CXXFLAGS) $(SRCS) $(INCLUDES) >.depend
|
||||
|
||||
install: all create_install_dir $(INSTALL_TARGS)
|
||||
install -m 0711 *.so $(prefix)/modules
|
||||
install -m 0711 *.so $(prefix)/share/znc
|
||||
|
||||
create_install_dir:
|
||||
mkdir -p $(prefix)/modules
|
||||
mkdir -p $(prefix)/share/znc
|
||||
|
||||
install_%:
|
||||
install -m 0711 $(subst install_,,$@) $(prefix)/modules
|
||||
install -m 0711 $(subst install_,,$@) $(prefix)/share
|
||||
|
||||
clean:
|
||||
rm -rf *.so *.o core core.*
|
||||
|
||||
Reference in New Issue
Block a user