From af4c5d48fd3c56793d59595045a069a178346652 Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Sun, 27 Jan 2019 16:15:12 +0100 Subject: Commandline options and cleaned parsing options. no wraping of text --- makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 makefile (limited to 'makefile') 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 " + @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" -- cgit v1.2.3