From b67ad525147b8d219ff3508674dec3b25a3f62f0 Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Sat, 15 Sep 2018 03:31:52 +0200 Subject: Makefile added, everything streamlined --- makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 makefile (limited to 'makefile') 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 " + @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" -- cgit v1.2.3