summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rwxr-xr-xmakefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100755
index 0000000..dc9bb34
--- /dev/null
+++ b/makefile
@@ -0,0 +1,28 @@
+version=$(shell git tag --points-at)
+date=$(shell date "+%b %Y")
+name=laboravi
+.PHONY: all
+
+all:
+ @echo " make <cmd>"
+ @echo ""
+ @echo "Commands:"
+ @echo " build - runs go build with ldflags version=${version} & date=${date}"
+ @echo " fetch_stuff - installs all needed programs and libaries"
+ @echo ""
+
+
+build: clean
+ @go build -v -ldflags '-X "main.version=${version}" -X "main.compdate=${date}"' -o ${name}
+
+clean:
+ @rm -f ${name}
+
+fetch_stuff:
+ @sudo apt-get install sqlite3
+ @go get github.com/fatih/color
+ @go get github.com/mattn/go-sqlite3
+ @go get github.com/abiosoft/ishell
+ @mkdir outpdf
+ @mkdir outtex
+ @echo "All nessecary libaries installed"