From f05aaa0561e071a54785ae7dfae3d8a34c9df06a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 21 Aug 2021 23:23:30 +0300 Subject: Updated build system with run command --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dbf6456..cc9f7b2 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ OBJCOPY_FLAGS ?= -Obinary KERNEL_SOURCES := INIT_SOURCES := CLEANUP := build deps.mk kernel.* init.* apos.bin +CLEANUP_CMD := include arch/$(ARCH)/source.mk @@ -49,4 +50,5 @@ init.elf: $(INIT_OBJECTS) $(INIT_LD) $(COMPILE) -T$(INIT_LD) $(INIT_OBJECTS) -o $@ clean: + $(CLEANUP_CMD) $(RM) -r $(CLEANUP) -- cgit v1.3