Skip to content

Commit f10a802

Browse files
committed
add Makefile
1 parent 917c9dc commit f10a802

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Makefile

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

0 commit comments

Comments
 (0)