Use sysconfdir for the location of global tmux.conf (but default it to /etc),

based on changes from Dagobert Michelsen.
This commit is contained in:
Nicholas Marriott
2013-04-24 10:57:03 +01:00
parent 11b90bc959
commit 4f3c31a6b6
6 changed files with 15 additions and 15 deletions

View File

@ -15,7 +15,7 @@ dist-hook:
find $(distdir) -name .svn -type d|xargs rm -Rf
# Preprocessor flags.
CPPFLAGS += @XOPEN_DEFINES@
CPPFLAGS += @XOPEN_DEFINES@ -DTMUX_CONF="\"$(sysconfdir)/tmux.conf\""
# glibc as usual does things ass-backwards and hides useful things by default,
# so everyone has to add this.
@ -240,9 +240,10 @@ endif
# Build tmux.1 in the right format.
tmux.1: tmux.1.in
if test x@MANFORMAT@ = xmdoc; then \
cp tmux.1.in tmux.1; \
sed -e "s|@SYSCONFDIR@|$(sysconfdir)|g" tmux.1.in >tmux.1; \
else \
$(AWK) -fmdoc2man.awk <tmux.1.in >tmux.1; \
sed -e "s|@SYSCONFDIR@|$(sysconfdir)|g" tmux.1.in| \
$(AWK) -fmdoc2man.awk >tmux.1; \
fi
# Update SF web site.