From b824f64f619947f0db626a5593b0affb81893017 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