aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited 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"