mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
;make gencabal, make genmanuals -> make cabal, make manuals
This commit is contained in:
parent
b389ee98dd
commit
99ffb07984
14
Makefile
14
Makefile
@ -798,21 +798,21 @@ iscleanwd:
|
|||||||
isclean-%:
|
isclean-%:
|
||||||
@$(ISCLEAN) $* || (echo "please clean these files first: $*"; false)
|
@$(ISCLEAN) $* || (echo "please clean these files first: $*"; false)
|
||||||
|
|
||||||
# (re)generate a cabal files with stack's built-in hpack
|
# update all cabal files based on latest package.yaml files using stack's built-in hpack
|
||||||
gencabal: $(call def-help,gencabal, regenerate cabal files from package.yaml files with stack )
|
cabal: $(call def-help,cabal, regenerate cabal files from package.yaml files with stack )
|
||||||
$(STACK) build --dry-run --silent
|
$(STACK) build --dry-run --silent
|
||||||
|
|
||||||
# (re)generate cabal files with hpack
|
# Update all cabal files based on latest package.yaml files using a specific hpack version.
|
||||||
# To avoid warnings, this hpack should be the same version as stack's built-in hpack
|
# To avoid warnings, this should be the same version as stack's built-in hpack.
|
||||||
gencabal-with-hpack-%:
|
cabal-with-hpack-%:
|
||||||
$(STACK) build --with-hpack hpack-$* --dry-run --silent
|
$(STACK) build --with-hpack hpack-$* --dry-run --silent
|
||||||
|
|
||||||
# updatecabal: gencabal $(call def-help,updatecabal, regenerate cabal files and commit )
|
# updatecabal: gencabal $(call def-help,updatecabal, regenerate cabal files and commit )
|
||||||
# @read -p "please review changes then press enter to commit $(shell ls */*.cabal)"
|
# @read -p "please review changes then press enter to commit $(shell ls */*.cabal)"
|
||||||
# git commit -m "update cabal files" $(shell ls */*.cabal)
|
# git commit -m "update cabal files" $(shell ls */*.cabal)
|
||||||
|
|
||||||
# we call in shake for this job; so dependencies aren't checked here
|
# we use shake for this job; so dependencies aren't checked here
|
||||||
genmanuals: Shake $(call def-help,genmanuals, regenerate CLI help files and manuals (might need -B) )
|
manuals: Shake $(call def-help,manuals, regenerate and commit CLI help and manuals (might need -B) )
|
||||||
./Shake manuals
|
./Shake manuals
|
||||||
git commit -m ";doc: regen manuals" -m "[ci skip]" hledger*/hledger*.{1,5,info,txt} hledger/Hledger/Cli/Commands/*.txt
|
git commit -m ";doc: regen manuals" -m "[ci skip]" hledger*/hledger*.{1,5,info,txt} hledger/Hledger/Cli/Commands/*.txt
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user