From b37c8b22a954f52c280722a6f9ff41cbc8ecf8d3 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 25 May 2021 20:48:03 +0200 Subject: Add install Target --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8989393..9bcf23e 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3-70-g09d2