From 752da93f475d63d6cac3a6e96a91947c1e3dffa0 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 28 Nov 2007 00:51:25 +0000 Subject: [PATCH] Eliminate DIRS_MODULES DIRS_MODULES is always used in the context when the Makefile is processed directly, not from the kernel build system. Therefore, it's equivalent to obj-y. git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2986 0192ed92-7a03-0410-a25b-9323aeb14dbd --- Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 953589e..a390b2f 100644 --- a/Makefile +++ b/Makefile @@ -50,15 +50,13 @@ ifneq (svnversion.h,$(MAKECMDGOALS)) include $(TOP)/Makefile.inc endif -DIRS_MODULES = $(ATH) $(ATH_HAL) $(ATH_RATE) $(WLAN) - obj-y := ath/ ath_hal/ ath_rate/ net80211/ all: modules tools modules: configcheck svnversion.h ifdef LINUX24 - for i in $(DIRS_MODULES); do \ + for i in $(obj-y); do \ $(MAKE) -C $$i || exit 1; \ done else @@ -90,7 +88,7 @@ install-modules: modules @# might cause make to abort the build sh scripts/find-madwifi-modules.sh -r $(KERNELRELEASE) $(DESTDIR) - for i in $(DIRS_MODULES); do \ + for i in $(obj-y); do \ $(MAKE) -C $$i install || exit 1; \ done ifeq ($(DESTDIR),) @@ -116,7 +114,7 @@ reinstall-tools: uninstall-tools install-tools reinstall-modules: uninstall-modules install-modules clean: - for i in $(DIRS_MODULES); do \ + for i in $(obj-y); do \ $(MAKE) -C $$i clean; \ done -$(MAKE) -C $(TOOLS) clean -- 2.35.1