diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,14 +1,20 @@ # vim: shiftwidth=4 tabstop=4 noexpandtab -.PHONY: all clean debug +PREFIX=/usr all: mkdir -p build - go build -o build/stlscope *.go + go build -o build/stlscope ./... clean: rm -rf build debug: - go run *.go -file data/L.stl + go run ./... -file data/L.stl + +install: all + mkdir -p $(PREFIX)/bin + install -m 755 build/stlscope $(PREFIX)/bin + +.PHONY: all clean debug install release |