diff options
| author | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-15 03:31:52 +0200 |
|---|---|---|
| committer | Nikolaus Gotsche <n@softwarefools.com> | 2018-09-15 03:31:52 +0200 |
| commit | b67ad525147b8d219ff3508674dec3b25a3f62f0 (patch) | |
| tree | 2684d4bb2dce753a9d90b892735f45360e5413b0 /makefile | |
| parent | 4fa9a4e986d457b406236fc62a5955a2275b83a9 (diff) | |
Diffstat (limited to 'makefile')
| -rwxr-xr-x | makefile | 28 |
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" |
