summaryrefslogtreecommitdiff
path: root/Makefile
blob: 47a3dce9e41b6aae742ae6c8d280c2e5f2ba6bf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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