Skip to content

Commit 676f62b

Browse files
committed
add makefile
1 parent 7c5de19 commit 676f62b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
prefix ?= /usr/local
2+
bindir = $(prefix)/bin
3+
libdir = $(prefix)/lib
4+
5+
build:
6+
swift build -c release --disable-sandbox
7+
8+
install: build
9+
install ".build/release/cross" "$(bindir)"
10+
11+
uninstall:
12+
rm -rf "$(bindir)/cross"
13+
14+
clean:
15+
rm -rf .build
16+
17+
.PHONY: build install uninstall clean

0 commit comments

Comments
 (0)