From d3079c9066d64904c934a595d42c01f71830579c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 23 May 2023 17:14:01 -1000 Subject: [PATCH] ;dev: make install-as-%: save in bin/old/ instead --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 46f233cba..a3bcc0f4d 100644 --- a/Makefile +++ b/Makefile @@ -437,10 +437,10 @@ copy-exe-%: $(call def-help,copy-exe.FOO, copy ~/.local/bin/hledger to hledger-F copy-exes-%: $(call def-help,copy-exes.FOO, copy ~/.local/bin/hledger* to hledger*-FOO) for EXE in $(BINARIES); do cp ~/.local/bin/$$EXE{,-$*}; done -install-as-%: $(call def-help,install-as-FOO, like stack install but save executables as bin/hledger*-FOO) - @$(STACK) install --local-bin-path bin +install-as-%: $(call def-help,install-as-FOO, like stack install but save executables as bin/old/hledger*-FOO) + @$(STACK) install --local-bin-path bin/old @printf "\nMoved executables to:\n" - @for EXE in $(BINARIES); do mv bin/$$EXE bin/$$EXE-$*; echo "- bin/$$EXE-$*"; done + @for EXE in $(BINARIES); do mv bin/old/$$EXE bin/old/$$EXE-$*; echo "- bin/$$EXE-$*"; done # make must be GNU Make 4.3+ .PHONY: shellcompletions