aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-04-20 12:45:25 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-04-20 12:45:25 +0200
commitfff6fb24c624d0e434481d641313c196b8254a82 (patch)
tree299ecd1270b692607fae77090d37f5ca4959d935
parent3c0811fb0912aaad6a6e5a41120d66a692c53387 (diff)
Add ETCDIR to Makefile
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1ad4b15..fd8d01b 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
DESTDIR=/usr
+ETCDIR=/etc
install: bin lib share
@@ -18,6 +19,7 @@ bin:
sed \
-e 's@BASHTARD_LIBDIR=.*@BASHTARD_LIBDIR="$(DESTDIR)/lib/bashtard"@' \
-e 's@BASHTARD_SHAREDIR=.*@BASHTARD_SHAREDIR="$(DESTDIR)/share/bashtard"@' \
+ -e 's@BASHTARD_ETCDIR=.*@BASHTARD_ETCDIR="$(ETCDIR)/bashtard"@' \
bin/bashtard > "$(DESTDIR)/bin/bashtard"
chmod +x "$(DESTDIR)/bin/bashtard"