summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2019-01-27 16:15:12 +0100
committerNikolaus Gotsche <n@softwarefools.com>2019-01-27 16:15:12 +0100
commitaf4c5d48fd3c56793d59595045a069a178346652 (patch)
treef39ef02539cf469ba274b0ba8265216b18ced38f /makefile
parent32ed5a2d05b8266b2dd00844dc7b52b3cb91114d (diff)
Commandline options and cleaned parsing options. no wraping of text0.2
Diffstat (limited to 'makefile')
-rw-r--r--makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..d3e2e3c
--- /dev/null
+++ b/makefile
@@ -0,0 +1,24 @@
+version=$(shell git tag --points-at HEAD)
+date=$(shell date "+%b %Y")
+name=fenestra
+.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 libaries"
+ @echo ""
+
+
+build: clean
+ @go build -v -ldflags '-X "main.version=${version}" -X "main.compdate=${date}"' -o ${name}
+
+clean:
+ @rm -f ${name}
+
+fetch_stuff:
+ @go get -u github.com/aarzilli/nucular
+ @go get -u github.com/pborman/getopt/v2
+ @echo "All nessecary libaries installed"