mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 10:17:34 +03:00
;imp: make: copy-bins-to-VER -> copy-exe[s]-VER
This commit is contained in:
parent
b868e61979
commit
09f403dfd8
7
Makefile
7
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)
|
ghci-shake: $(call def-help,ghci-shake, start ghci REPL on Shake.hs)
|
||||||
stack exec $(SHAKEDEPS) -- ghci 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)
|
copy-exe-%: $(call def-help,copy-exe-VER, copy ~/.local/bin/hledger to hledger.VER)
|
||||||
V=$*; for B in $(BINARIES); do cp ~/.local/bin/$$B ~/.local/bin/$$B.$$V; done
|
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+
|
# make must be GNU Make 4.3+
|
||||||
.PHONY: shellcompletions
|
.PHONY: shellcompletions
|
||||||
|
Loading…
Reference in New Issue
Block a user