Skip to content

Commit 43ac370

Browse files
authored
Merge pull request #79 from kkebo/78-fix-makefile
build: fix Makefile dependencies
2 parents 4f5a4a7 + a2f5aae commit 43ac370

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
EXE := .build/release/Kernel
22
IMG := .build/kernel8.img
33
TOOLSET := toolset.json
4-
LINKER_SCRIPT := linker.ld
54

65
TRIPLE := aarch64-none-none-elf
76
SWIFT := swift
@@ -16,7 +15,10 @@ all: $(IMG)
1615
$(IMG): Makefile $(EXE)
1716
$(OBJCOPY) $(EXE) -O binary $@
1817

19-
$(EXE): Makefile .swift-version $(TOOLSET) $(LINKER_SCRIPT) Package.swift $(wildcard Package.resolved) Sources
18+
$(EXE): Makefile swift
19+
20+
.PHONY: swift
21+
swift:
2022
$(SWIFT) build $(SWIFT_BUILD_FLAGS)
2123

2224
.PHONY: run

0 commit comments

Comments
 (0)