Skip to content

Commit a20ad24

Browse files
author
Thibault Wittemberg
committed
project: add Makefile
1 parent fa7a69d commit a20ad24

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Makefile

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

0 commit comments

Comments
 (0)