diff --git a/kernel/Makefile b/kernel/Makefile index 55749e58..12fe404a 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -54,7 +54,7 @@ $(MOON_OBJ)/%.asm.o: $(MOON_SRC)/%.asm $(ASM) $(ASMFLAGS) -o $@ $^ build: $(OBJS) - @mkdir -p $(@D) + @mkdir -p $(MOON_BIN) $(CC) $(OBJS) $(LDFLAGS) -o $(MOON_BIN)/moon.elf clean: @@ -62,7 +62,7 @@ clean: rm -rf $(MOON_BIN)/* install: $(MOON_BIN)/moon.elf - @mkdir -p $(@D) + @mkdir -p $(LUNA_ROOT)/initrd/boot cp $^ $(LUNA_ROOT)/initrd/boot/moon.elf $(LUNA_ROOT)/tools/generate-symbols.sh $(STRIP) $(LUNA_ROOT)/initrd/boot/moon.elf