From 972223c992ca5aa5e5d93cff3b2ee4e30182025b Mon Sep 17 00:00:00 2001 From: KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> Date: Sun, 7 Nov 2021 00:32:39 -0300 Subject: restructuring part 5 --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..47075ac --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +VERSION=`git describe --tags` +BUILD=`date +%FT%T%z` + +LDFLAGS=-X github.com/FChannel0/FChannel-Server/config.Version=${VERSION} -X github.com/FChannel0/FChannel-Server/config.BuildTime=${BUILD} +FLAGS=-ldflags "-w -s ${LDFLAGS}" +FLAGS_DEBUG=-ldflags "${LDFLAGS}" + +debug: + go build -o fchan ${FLAGS_DEBUG} + +build: + go build -o fchan ${FLAGS} + +clean: + if [ -f "fchan" ]; then rm "fchan"; fi + +.PHONY: clean install -- cgit v1.2.3