diff --git a/Makefile b/Makefile index 1e6b91d..8df1c91 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,10 @@ test: run-test ########## all-kernel: all-libk - make all -C arch/$(ARCH) + make all -C arch clean-kernel: - make clean -C arch/$(ARCH) + make clean -C arch ####### # ISO # diff --git a/arch/Makefile b/arch/Makefile new file mode 100644 index 0000000..7a7e428 --- /dev/null +++ b/arch/Makefile @@ -0,0 +1,10 @@ +ARCHES = $(shell ls -d */) +ARCHES := $(ARCHES:/=) + +all: + make all -C $(ARCH) + +clean: $(addprefix clean-, $(ARCHES)) + +clean-%: + make clean -C $* diff --git a/arch/none/Makefile b/arch/none/Makefile deleted file mode 100644 index ad6a457..0000000 --- a/arch/none/Makefile +++ /dev/null @@ -1 +0,0 @@ -clean: