# Luckily it does read GNUmakefile over Makefile so we can work around it
# Nasty hack so that make clean works without configure being run
-CONFIG_MK?=$(shell test -e config.mk && echo config.mk || echo config-null.mk)
+TOP?= .
+CONFIG_MK?= $(shell test -e ${TOP}/config.mk && \
+ echo config.mk || echo config-null.mk)
include Makefile
-include .depend
# Nasty hack so that make clean works without configure being run
# Requires gmake4
-_CONFIG_MK!= test -e ${TOP}/config.mk && echo config.mk || echo config-null.mk
-CONFIG_MK?= ${_CONFIG_MK}
TOP?= .
+_CONFIG_MK!= test -e ${TOP}/config.mk && \
+ echo config.mk || echo config-null.mk
+CONFIG_MK?= ${_CONFIG_MK}
include ${TOP}/${CONFIG_MK}