Samuel Tan | d7ed851 | 2015-08-13 16:11:35 -0700 | [diff] [blame] | 1 | # GNU Make does not automagically include .depend |
2 | # Luckily it does read GNUmakefile over Makefile so we can work around it | ||||
3 | |||||
4 | # Nasty hack so that make clean works without configure being run | ||||
5 | TOP?= . | ||||
6 | CONFIG_MK?= $(shell test -e ${TOP}/config.mk && \ | ||||
7 | echo config.mk || echo config-null.mk) | ||||
8 | |||||
9 | include Makefile | ||||
10 | ifneq ($(wildcard .depend), ) | ||||
11 | include .depend | ||||
12 | endif |