aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9f7cd43
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+PREFIX ?= /usr/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
+
+.PHONY: all run build install uninstall clean