From 32ab4246805606b7ef92f4c4e59a8b1c0d5bdf97 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 6 Apr 2005 18:44:37 +0000 Subject: [PATCH] Add `dirs' target. Simplify and improve. --- src/Makefile.kernel | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Makefile.kernel b/src/Makefile.kernel index 181eb23..e31d513 100644 --- a/src/Makefile.kernel +++ b/src/Makefile.kernel @@ -2,18 +2,17 @@ include Make.vars BUILD_SUBDIRS = $(addprefix build/, $(SUBDIRS)) -CP = cp -MKDIR = mkdir -all: build build/Makefile $(BUILD_SUBDIRS) +all: dirs $(MAKE) -C build -$(BUILD_SUBDIRS): - $(MKDIR) $@ +dirs: build build/Makefile $(BUILD_SUBDIRS) build: - $(MKDIR) $@ + mkdir $@ build/Makefile: ../Makefile.build - $(CP) $< $@ + cp $< $@ +$(BUILD_SUBDIRS): + mkdir $@ clean: rm -rf build -- 2.30.2