blob: a7ebe7c16bf03f91ad6e3b54a4c74651b587eeb2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
PREFIX ?= $(HOME)/.local/bin
all: run
run:
swift run -c debug
build:
swift build -c release
install: build
install -d $(PREFIX)
install ".build/release/bar" "$(PREFIX)/bar"
uninstall:
rm -f "$(PREFIX)/bar"
clean:
rm -rf .build
docs:
SWIFT_DOCC=1 swift package --disable-sandbox preview-documentation --target bar
.PHONY: all run build install uninstall clean docs
|