summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2021-05-14 18:42:43 +0100
committerSadie Powell <sadie@witchery.services>2021-05-14 18:42:43 +0100
commit3adf2b764308595e6108ea2b119c22a544812a83 (patch)
treefde4b5ce7ef40a9d6055eb6c7a8622ff7b55daba /make/template
parent6ff8f38a6d55970af1400cc78994e017ca351c39 (diff)
Create the runtime directory at install time if it does not exist.
Diffstat (limited to 'make/template')
-rw-r--r--make/template/main.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index a8783aa05..53430c78e 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -58,6 +58,7 @@ EXAPATH = "$(DESTDIR)@EXAMPLE_DIR@"
LOGPATH = "$(DESTDIR)@LOG_DIR@"
MANPATH = "$(DESTDIR)@MANUAL_DIR@"
MODPATH = "$(DESTDIR)@MODULE_DIR@"
+RUNPATH = "$(DESTDIR)@RUNTIME_DIR@"
SCRPATH = "$(DESTDIR)@SCRIPT_DIR@"
INSTALL ?= install
@@ -221,6 +222,7 @@ install: target
@-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(LOGPATH)
@-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MANPATH)
@-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(MODPATH)
+ @-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(RUNPATH)
@-$(INSTALL) -d -g @GID@ -o @UID@ -m $(INSTMODE_DIR) $(SCRPATH)
-$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_BIN) "$(BUILDPATH)/bin/inspircd" $(BINPATH)
-$(INSTALL) -g @GID@ -o @UID@ -m $(INSTMODE_BIN) "$(BUILDPATH)/modules/"*.so $(MODPATH)