mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 20:02:27 +03:00
;make: install-as-FOO: build executables and save as bin/hledger*-FOO
This commit is contained in:
parent
94d9c28a63
commit
fc8e482de5
9
Makefile
9
Makefile
@ -414,12 +414,17 @@ 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-exe-%: $(call def-help,copy-exe-VER, copy ~/.local/bin/hledger to hledger-VER)
|
||||
copy-exe-%: $(call def-help,copy-exe-FOO, copy ~/.local/bin/hledger to hledger-FOO)
|
||||
cp ~/.local/bin/hledger{,-$*}
|
||||
|
||||
copy-exes-%: $(call def-help,copy-exes-VER, copy ~/.local/bin/hledger* to hledger*-VER)
|
||||
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
|
||||
@printf "\nMoved executables to:\n"
|
||||
@for EXE in $(BINARIES); do mv bin/$$EXE bin/$$EXE-$*; echo "- bin/$$EXE-$*"; done
|
||||
|
||||
# make must be GNU Make 4.3+
|
||||
.PHONY: shellcompletions
|
||||
shellcompletions: $(call def-help,shellcompletions, update shell completions in hledger package)
|
||||
|
Loading…
Reference in New Issue
Block a user