Nyanix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit a1ce9e3ac406a5594dc471696f49e5573ff4ddd5
parent e5bc326b065a6391547d8f6bb69e76f0621b9dd4
Author: pwk4m1 <k4m1@protonmail.com>
Date:   Sun,  4 Nov 2018 15:30:05 +0200

Update makefile

Diffstat:
Makefile | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -6,7 +6,14 @@ entry=src/boot_early/boot.s .PHONY: all clean debug qemu install -all: clean install +all: check clean install + +check: + @command -v nasm >/dev/null 2>&1 || { \ + echo "nasm assembler not found"; \ + echo "Abort"; \ + exit 1; \ + } clean: rm -rf bin/* @@ -18,5 +25,6 @@ qemu: clean debug qemu-system-i386 -d guest_errors $(target) install: + mkdir -p bin $(as) $(asflags) -o $(target) $(entry)