diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -59,7 +59,7 @@ $(BUILD)/_%.o : %.s | $(BUILD) # install xbuild first. (cargo install xbuild) # Compile the rust part: note that the the cargo crate is of type [staticlib], if you don't # define this, the linker will have troubles, especially when we use a "no_std" build -rust_kernel: +rust_kernel: check cargo xbuild --target $(CARGO_XBUILD_TARGET) $(CARGO_XBUILD_FLAGS) # need nasm @@ -72,6 +72,11 @@ startup.o: boot/startup-$(ARCH).s | $(BUILD) $(BUILD): @mkdir -p $@ +.PHONY: check +check: + @echo "---CHECKING FORMATTING---" + @cargo fmt --all -- --check -l + clean: cargo clean rm -f bootdisk.iso |
