From fc5afb7e2f9773147d524a65e62db94bd51ac5f2 Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Wed, 1 Dec 2021 09:30:53 +0100 Subject: [PATCH] feat(make): make lib_julios .phony Signed-off-by: Julien CLEMENT --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 6a5aea7..80f7cab 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,6 @@ LIB_JULIOS = target/x86_64-julios/debug/libjulios.a GRUB_CFG = grub/grub.cfg -SRC = src/lib.rs - all: $(ISO) run: $(ISO) @@ -31,7 +29,7 @@ install: $(KERNEL) $(GRUB_CFG) $(KERNEL): $(LIB_JULIOS) $(LINKER_SCRIPT) $(BOOT_OBJS) ld -n -T $(LINKER_SCRIPT) -o $(KERNEL) $(BOOT_OBJS) $(LIB_JULIOS) -$(LIB_JULIOS): $(SRC) +$(LIB_JULIOS): cargo build @@ -44,4 +42,4 @@ clean: $(RM) julios.iso $(RM) -r iso -.PHONY: $(INSTALL_ROOT) install clean all run debug +.PHONY: $(INSTALL_ROOT) install clean all run debug $(LIB_JULIOS)