summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-06-15 22:00:24 +0200
committerAttila Molnar <attilamolnar@hush.com>2015-06-15 22:00:24 +0200
commit5d8fd0cf2c4053ef7aace0c6a41c326758237093 (patch)
treefd4f5d8c081d088f1c40be40e72e81773880ae00 /make/template/main.mk
parent10127b6540c6c30bdb1bfa4c0d4d4afe30c2f22e (diff)
parent2ad8a6791bbc548dee4156eaf661612bea3d310f (diff)
Merge pull request #1060 from SaberUK/insp20+install
[2.0] Fix system-wide installation of the data and log directories.
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index d5705d928..1dff0fc20 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -42,6 +42,7 @@ PICLDFLAGS = -fPIC -shared -rdynamic $(LDFLAGS)
BASE = "$(DESTDIR)@BASE_DIR@"
CONPATH = "$(DESTDIR)@CONFIG_DIR@"
MODPATH = "$(DESTDIR)@MODULE_DIR@"
+LOGPATH = "$(DESTDIR)@LOG_DIR@"
DATPATH = "$(DESTDIR)@DATA_DIR@"
BINPATH = "$(DESTDIR)@BINARY_DIR@"
INSTALL = install
@@ -220,8 +221,8 @@ install: target
exit 1; \
fi
@-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)
- @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/data
- @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/logs
+ @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(DATPATH)
+ @-$(INSTALL) -d -o $(INSTUID) -m $(INSTMODE_DIR) $(LOGPATH)
@-$(INSTALL) -d -m $(INSTMODE_DIR) $(BINPATH)
@-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/aliases
@-$(INSTALL) -d -m $(INSTMODE_DIR) $(CONPATH)/examples/modules