Add config-null.mk and a nasty hack to include config.mk instead if it exists.
authorRoy Marples <roy@marples.name>
Wed, 23 Apr 2014 14:21:15 +0000 (14:21 +0000)
committerRoy Marples <roy@marples.name>
Wed, 23 Apr 2014 14:21:15 +0000 (14:21 +0000)
This allows make clean to work without configure being run.
Default settings to NetBSD.

Makefile
config-null.mk [new file with mode: 0644]

index 03f55042defc6d827aa86853cf16bc5349cb845c..71b3b8eabe94cacd436ef54f8369be247bc67e25 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,17 @@
-include config.mk
+# Nasty hack so that make clean works without configure being run
+_CONFIG_MK_SH= test -e config.mk && echo config.mk || echo config-null.mk
+_CONFIG_MK!=   ${_CONFIG_MK_SH}
+CONFIG_MK=     ${_CONFIG_MK}$(shell ${_CONFIG_MK_SH})
+include                ${CONFIG_MK}
+
+SBINDIR?=      /sbin
+SYSCONFDIR?=   /etc
+LIBEXECDIR?=   /libexec/resolvconf
+VARDIR?=       /var/run/resolvconf
+RCDIR?=                /etc/rc.d
+RESTARTCMD?=   if ${RCDIR}/\1 status >/dev/null 2>\&1; then \
+                       ${RCDIR}/\1 restart; \
+               fi
 
 NAME=          openresolv
 VERSION=       3.5.6
diff --git a/config-null.mk b/config-null.mk
new file mode 100644 (file)
index 0000000..6bf701d
--- /dev/null
@@ -0,0 +1 @@
+# This space left intentionally blank