From c545c71b7a5c57bac3ca2b139317a07c428f8e32 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 16 Aug 2007 18:03:28 +0000 Subject: [PATCH] topdir.mk: Put all undispensable topdir Makefile functionality --- make/topdir.mk | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/make/topdir.mk b/make/topdir.mk index dc6087b4..47b72899 100644 --- a/make/topdir.mk +++ b/make/topdir.mk @@ -1,5 +1,20 @@ SUBDIRS ?= make +all: +install: +clean: topdir.clean +distclean: topdir.distclean +config: + +ifeq ($(wildcard $(TOPDIR)/make/defs.mk),) + include make/moddir.mk +else + +include $(MODDIR)/make/defs.mk +include $(MODDIR)/make/rpmdist.mk +-include $(TOPDIR)/make/rpmdist.mk +include $(MODDIR)/make/subdirs.mk + local-%: find . -name $@.mk | \ while read f; do (\ @@ -11,10 +26,15 @@ local-%: unlocal: rm -f $(shell find . -name local.mk) -include $(MODDIR)/make/subdirs.mk - -distclean: +topdir.distclean: rm -f $(DISTCLEAN) -clean: +topdir.clean: rm -f $(CLEAN) + +endif + +ifneq ($(wildcard $(TOPDIR)/make/defs.mk.in),) + include $(MODDIR)/make/autoconf.mk +endif +