Make build process work offline IF it was previously built with internet connection at least once.

This commit is contained in:
TomAwezome 2022-11-02 13:38:49 -04:00
parent 68f4fad430
commit e8d87009a9

View file

@ -83,7 +83,7 @@ override HEADER_DEPS := $(CFILES:.c=.d) $(ASFILES:.S=.d)
all: $(KERNEL) all: $(KERNEL)
limine.h: limine.h:
curl https://raw.githubusercontent.com/limine-bootloader/limine/trunk/limine.h -o $@ curl -f https://raw.githubusercontent.com/limine-bootloader/limine/trunk/limine.h -o $@ || cp ../build/limine/limine.h limine.h
# Link rules for the final kernel executable. # Link rules for the final kernel executable.
$(KERNEL): $(OBJ) $(KERNEL): $(OBJ)