mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-05 11:15:27 +03:00
;dev: make install-as-%: save in bin/old/ instead
This commit is contained in:
parent
4a61caefd7
commit
d3079c9066
6
Makefile
6
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
|
||||
|
Loading…
Reference in New Issue
Block a user