lockbox

password manager
Log | Files | Refs | README | LICENSE

commit adf1205243dfb4fa8948f0a4cbeb5aa30ed04e12
parent d610a1a0aa6c15468e81c8f6cdf42435f95f2fdf
Author: Sean Enck <sean@ttypty.com>
Date:   Wed, 15 Sep 2021 18:35:47 -0400

better makefile for binary handling

Diffstat:
Mconfigure | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure b/configure @@ -60,7 +60,9 @@ _generate() { echo "# Autogenerated file FLAGS := -ldflags \"-X main.version=\$(shell git log -n 1 --format=%h)\" -trimpath -buildmode=pie -mod=readonly -modcacherw -all: prep ${binapps[@]} test +all: prep binaries test + +binaries: ${binapps[@]} test: make -C tests @@ -77,7 +79,7 @@ clean: for binapp in ${binapps[@]}; do app=${APPS[$cnt]} cnt=$((cnt+1)) - echo "$binapp: \$(shell find . -type f -name '*.go') go.*" + echo "$binapp: go.* cmd/$app/*.go internal/*" echo " go build -o $binapp \$(FLAGS) cmd/$app/main.go" echo done