20 lines
333 B
Makefile
Executable file
20 lines
333 B
Makefile
Executable file
# -*- makefile -*-
|
|
|
|
all:
|
|
|
|
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
|
|
cp $< $@
|
|
|
|
build/%: $(DIRS) build/Makefile
|
|
cd build && $(MAKE) $*
|
|
|
|
clean:
|
|
rm -rf build
|