feat(make): make lib_julios .phony
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Julien CLEMENT <julien.clement@epita.fr>
This commit is contained in:
parent
be3cc35e1d
commit
fc5afb7e2f
6
Makefile
6
Makefile
@ -9,8 +9,6 @@ LIB_JULIOS = target/x86_64-julios/debug/libjulios.a
|
|||||||
|
|
||||||
GRUB_CFG = grub/grub.cfg
|
GRUB_CFG = grub/grub.cfg
|
||||||
|
|
||||||
SRC = src/lib.rs
|
|
||||||
|
|
||||||
all: $(ISO)
|
all: $(ISO)
|
||||||
|
|
||||||
run: $(ISO)
|
run: $(ISO)
|
||||||
@ -31,7 +29,7 @@ install: $(KERNEL) $(GRUB_CFG)
|
|||||||
$(KERNEL): $(LIB_JULIOS) $(LINKER_SCRIPT) $(BOOT_OBJS)
|
$(KERNEL): $(LIB_JULIOS) $(LINKER_SCRIPT) $(BOOT_OBJS)
|
||||||
ld -n -T $(LINKER_SCRIPT) -o $(KERNEL) $(BOOT_OBJS) $(LIB_JULIOS)
|
ld -n -T $(LINKER_SCRIPT) -o $(KERNEL) $(BOOT_OBJS) $(LIB_JULIOS)
|
||||||
|
|
||||||
$(LIB_JULIOS): $(SRC)
|
$(LIB_JULIOS):
|
||||||
cargo build
|
cargo build
|
||||||
|
|
||||||
|
|
||||||
@ -44,4 +42,4 @@ clean:
|
|||||||
$(RM) julios.iso
|
$(RM) julios.iso
|
||||||
$(RM) -r iso
|
$(RM) -r iso
|
||||||
|
|
||||||
.PHONY: $(INSTALL_ROOT) install clean all run debug
|
.PHONY: $(INSTALL_ROOT) install clean all run debug $(LIB_JULIOS)
|
||||||
|
Loading…
Reference in New Issue
Block a user