Skip to content

Commit e2415cd

Browse files
committed
Add Makefile
1 parent f5dedb9 commit e2415cd

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

Makefile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
clean:
2+
@# just delete specific directories instead of .builds so we don't
3+
@# have to re-fetch dependencies
4+
@rm -f .build/debug
5+
@rm -rf .build/*-apple-macosx/
6+
@rm -rf .build/*-unknown-linux/
7+
@rm -rf .build/*-unknown-linux-gnu/
8+
9+
macos-5.5: clean
10+
@echo
11+
@echo === Building $@ ===
12+
env DEVELOPER_DIR=/Applications/Xcode_13.2.1.app xcrun swift build
13+
14+
macos-5.6: clean
15+
@echo
16+
@echo === Building $@ ===
17+
env DEVELOPER_DIR=/Applications/Xcode_13.4.1.app xcrun swift build
18+
19+
macos-5.7: clean
20+
@echo
21+
@echo === Building $@ ===
22+
env DEVELOPER_DIR=/Applications/Xcode_14.2.0.app xcrun swift build
23+
24+
linux-5.5: clean
25+
@echo
26+
@echo === Building $@ ===
27+
docker run --rm -v "$(PWD)":/host -w /host "swift:5.5-focal" swift build
28+
29+
linux-5.6: clean
30+
@echo
31+
@echo === Building $@ ===
32+
docker run --rm -v "$(PWD)":/host -w /host "swift:5.6-focal" swift build
33+
34+
linux-5.7: clean
35+
@echo
36+
@echo === Building $@ ===
37+
docker run --rm -v "$(PWD)":/host -w /host "swift:5.7-focal" swift build
38+
39+
linux:
40+
linux-5.5 \
41+
linux-5.6 \
42+
linux-5.7
43+
44+
macos:
45+
macos-5.5 \
46+
macos-5.6 \
47+
macos-5.7
48+
49+
all:
50+
macos \
51+
linux

0 commit comments

Comments
 (0)