summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.Makefile.inc20
-rwxr-xr-xconfigure2
2 files changed, 11 insertions, 11 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index 1f2953fb6..826e61990 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -12,11 +12,11 @@ MAKE = @MAKEPROG@
PROGS = inspircd
FLAGS = @FLAGS@
LDLIBS = @LDLIBS@
-BASE = @BASE_DIR@
-CONPATH = @CONFIG_DIR@
-MODPATH = @MODULE_DIR@
-BINPATH = @BINARY_DIR@
-LIBPATH = @LIBRARY_DIR@
+BASE = $(DESTDIR)@BASE_DIR@
+CONPATH = $(DESTDIR)@CONFIG_DIR@
+MODPATH = $(DESTDIR)@MODULE_DIR@
+BINPATH = $(DESTDIR)@BINARY_DIR@
+LIBPATH = $(DESTDIR)@LIBRARY_DIR@
MODULES = @MODULES@
STATICLIBS = @STATICLIBS@
INSTMODE = 0700
@@ -50,11 +50,11 @@ ircd:
${MAKE} -C src DIRNAME="src" $(MAKEARGS)
install: all
- @-mkdir -p ${BASE}
- @-mkdir -p $(LIBPATH)
- @-mkdir -p $(BINPATH)
- @-mkdir -p $(CONPATH)
- @-mkdir -p ${MODPATH}
+ @-install -d -m $(INSTMODE) ${BASE}
+ @-install -d -m $(INSTMODE) $(LIBPATH)
+ @-install -d -m $(INSTMODE) $(BINPATH)
+ @-install -d -m $(INSTMODE) $(CONPATH)
+ @-install -d -m $(INSTMODE) ${MODPATH}
-install -m $(INSTMODE) src/libIRCDasyncdns.so $(LIBPATH)
-install -m $(INSTMODE) src/libIRCDbase.so $(LIBPATH)
-install -m $(INSTMODE) src/libIRCDchannels.so $(LIBPATH)
diff --git a/configure b/configure
index ef0142738..ea47dd721 100755
--- a/configure
+++ b/configure
@@ -1567,7 +1567,7 @@ m_$i.so: m_$i.cpp ../../include/modules.h ../../include/users.h ../../include/ch
\$(CC) -pipe \$(FLAGS) -shared $liflags -o m_$i.so m_$i.o $extra
EOCHEESE
- $crud = $crud . " install -m 0700 m_$i.so \$(MODPATH)\n";
+ $crud = $crud . " install -m \$(INSTMODE) m_$i.so \$(MODPATH)\n";
###
# End Write Entry to the MakeFile
###