From 09f403dfd85d6dc55522a0435bc7c0a31e5e9b34 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 19 Sep 2021 06:33:12 -1000 Subject: [PATCH] ;imp: make: copy-bins-to-VER -> copy-exe[s]-VER --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 35ac87741..aa814bfc2 100644 --- a/Makefile +++ b/Makefile @@ -414,8 +414,11 @@ ghci-doctest: $(call def-help,ghci-doctest, start ghci REPL on hledger-lib docte ghci-shake: $(call def-help,ghci-shake, start ghci REPL on Shake.hs) stack exec $(SHAKEDEPS) -- ghci Shake.hs -copy-bins-to-%: $(call def-help,copy-bins-to-VER, save ~/.local/bin/hledger* as hledger*.VER) - V=$*; for B in $(BINARIES); do cp ~/.local/bin/$$B ~/.local/bin/$$B.$$V; done +copy-exe-%: $(call def-help,copy-exe-VER, copy ~/.local/bin/hledger to hledger.VER) + cp ~/.local/bin/hledger{,.$*} + +copy-exes-%: $(call def-help,copy-exes-VER, copy ~/.local/bin/hledger* to hledger*.VER) + for EXE in $(BINARIES); do cp ~/.local/bin/$$EXE{,.$*}; done # make must be GNU Make 4.3+ .PHONY: shellcompletions