From 164c7435bdbe9abbe9c6d58eff19e835bf8add31 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Fri, 17 Mar 2023 19:18:15 +0100 Subject: [PATCH] +ctl build --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ad3af87..c7981d3 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,10 @@ BUILD = $(shell date +%Y.%m.%d.%H%M%S) VERSION := $(if $(filter $(BRANCH), development),$(version)-$(BRANCH)-$(COMMIT)-$(BUILD),$(version)) HAVE_POD := $(shell pod2text -h 2>/dev/null) -all: buildlocal +all: buildlocal buildlocalctl + +buildlocalctl: + make -C upctl buildlocal: go build -ldflags "-X 'github.com/tlinden/up/upd/cfg.VERSION=$(VERSION)'" @@ -45,7 +48,10 @@ install: buildlocal install -d -o $(UID) -g $(GID) $(PREFIX)/bin install -o $(UID) -g $(GID) -m 555 $(tool) $(PREFIX)/sbin/ -clean: +cleanctl: + make -C upctl clean + +clean: cleanctl rm -rf $(tool) releases coverage.out test: