summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..47a3dce
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+PREFIX ?= /usr/local
+
+
+gorth: src/main.go
+ go build -o gorth ./src
+
+install: gorth
+ mkdir -p ${DESTDIR}${PREFIX}/bin
+ cp -f gorth ${DESTDIR}${PREFIX}/bin
+
+uninstall:
+ rm -f ${DESTDIR}${PREFIX}/bin/gorth
+
+clean:
+ rm -f gorth
+
+.PHONY: test clean