Improve build system a little.
[openresolv] / Makefile
index 89e75810069a6587573fa1d72a07880f21e79a80..fde2f6e04f4b84ba54e2819e777ca582a46a5280 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@ MANMODE?=     0444
 SYSCONFDIR?=   ${PREFIX}/etc
 BINDIR=                ${PREFIX}/sbin
 LIBEXECDIR?=   ${PREFIX}/libexec/resolvconf
+VARDIR?=       ${VARBASE}/run/resolvconf
 MANDIR?=       ${MANPREFIX}/man
 
 RESOLVCONF=    resolvconf resolvconf.8 resolvconf.conf.5
@@ -28,7 +29,7 @@ all: ${TARGET}
        sed -e 's:@PREFIX@:${PREFIX}:g' \
                -e 's:@SYSCONFDIR@:${SYSCONFDIR}:g' \
                -e 's:@LIBEXECDIR@:${LIBEXECDIR}:g' \
-               -e 's:@VARBASE@:${VARBASE}:g' \
+               -e 's:@VARDIR@:${VARDIR}:g' \
                $@.in > $@
 
 clean: