From 05cbdfbeb5b0326d5890d93ddb464adf1e80553e Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 25 May 2021 13:51:04 +0200 Subject: Write Makefile with Targets all, clean and debug --- .gitignore | 4 +--- Makefile | 14 ++++++++++++++ README.md | 2 +- data/L.stl | Bin 0 -> 1084 bytes 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 Makefile create mode 100644 data/L.stl diff --git a/.gitignore b/.gitignore index bb7e2b9..690f9f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ archive vendor -stlscope -*.FCStd -*.stl +build diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8989393 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +# vim: shiftwidth=4 tabstop=4 noexpandtab + +.PHONY: all clean debug + +all: + mkdir -p build + go build -o build/stlscope *.go + +clean: + rm -rf build + +debug: + go run *.go -file data/L.stl + diff --git a/README.md b/README.md index f24070b..c6456e6 100644 --- a/README.md +++ b/README.md @@ -16,10 +16,10 @@ $ stlscope -h ## Development Milestones Done (most recent first): +- [x] implement Makefile to support building - [x] implement minimal viable product To do (most important first): -- [ ] implement Makefile to support building - [ ] package for Arch Linux - [ ] implement controls to modify view - [ ] improve graphics to better display the model diff --git a/data/L.stl b/data/L.stl new file mode 100644 index 0000000..24bb5a6 Binary files /dev/null and b/data/L.stl differ -- cgit v1.2.3-70-g09d2