aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e84a5b39b87f3ebac89eef0e66598d7a7280e3eb (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 package --disable-sandbox preview-documentation --target bar

.PHONY: all run build install uninstall clean docs