summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2021-05-25 13:51:04 +0200
committerxengineering <mail2xengineering@protonmail.com>2021-05-25 13:52:12 +0200
commit05cbdfbeb5b0326d5890d93ddb464adf1e80553e (patch)
treedfa2b43dab174375fc7f8723310982d51e74e3a5
parentd7e544b9e4e0513512e688760c75105a37bfd0bd (diff)
downloadstlscope-05cbdfbeb5b0326d5890d93ddb464adf1e80553e.tar
stlscope-05cbdfbeb5b0326d5890d93ddb464adf1e80553e.tar.zst
stlscope-05cbdfbeb5b0326d5890d93ddb464adf1e80553e.zip
Write Makefile with Targets all, clean and debug
-rw-r--r--.gitignore4
-rw-r--r--Makefile14
-rw-r--r--README.md2
-rw-r--r--data/L.stlbin0 -> 1084 bytes
4 files changed, 16 insertions, 4 deletions
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
--- /dev/null
+++ b/data/L.stl
Binary files differ