projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add installation chapter to manual. Remove now-redundant files from
[pintos-anon]
/
src
/
Makefile.kernel
diff --git
a/src/Makefile.kernel
b/src/Makefile.kernel
index e31d51360ab12da6160509caf1d51c0e485f0d87..162a4114256891794606019b106dc6d67353c323 100644
(file)
--- a/
src/Makefile.kernel
+++ b/
src/Makefile.kernel
@@
-1,18
+1,20
@@
# -*- makefile -*-
# -*- makefile -*-
+all:
+
include Make.vars
include Make.vars
-BUILD_SUBDIRS = $(addprefix build/, $(SUBDIRS))
-all: dirs
- $(MAKE) -C build
+DIRS = $(sort $(addprefix build/,$(KERNEL_SUBDIRS) $(TEST_SUBDIRS) lib/user))
-dirs: build build/Makefile $(BUILD_SUBDIRS)
-build:
- mkdir $@
+all grade check: $(DIRS) build/Makefile
+ cd build && $(MAKE) $@
+$(DIRS):
+ mkdir -p $@
build/Makefile: ../Makefile.build
cp $< $@
build/Makefile: ../Makefile.build
cp $< $@
-$(BUILD_SUBDIRS):
- mkdir $@
+
+build/%: $(DIRS) build/Makefile
+ cd build && $(MAKE) $*
clean:
rm -rf build
clean:
rm -rf build