projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
When using -k, make sure to flush all of the subprocess's output to
[pintos-anon]
/
src
/
Makefile.kernel
diff --git
a/src/Makefile.kernel
b/src/Makefile.kernel
index 91146a844925c29edf1fa48bac2403986cbcb4c8..162a4114256891794606019b106dc6d67353c323 100644
(file)
--- a/
src/Makefile.kernel
+++ b/
src/Makefile.kernel
@@
-1,17
+1,20
@@
-include Makefile.vars
-BUILD_SUBDIRS = $(addprefix build/, $(SUBDIRS))
-LN = ln
-MKDIR = mkdir
+# -*- makefile -*-
-all: build build/Makefile $(BUILD_SUBDIRS)
- $(MAKE) -C build
+all:
-$(BUILD_SUBDIRS):
- $(MKDIR) $@
-build:
- $(MKDIR) $@
+include Make.vars
+
+DIRS = $(sort $(addprefix build/,$(KERNEL_SUBDIRS) $(TEST_SUBDIRS) lib/user))
+
+all grade check: $(DIRS) build/Makefile
+ cd build && $(MAKE) $@
+$(DIRS):
+ mkdir -p $@
build/Makefile: ../Makefile.build
build/Makefile: ../Makefile.build
- $(LN) -f $< $@
+ cp $< $@
+
+build/%: $(DIRS) build/Makefile
+ cd build && $(MAKE) $*
clean:
rm -rf build
clean:
rm -rf build