22
22
# (highlight-lines-matching-regexp "^@?\\w.*\\w:$" 'hi-pink) ; recipe headings (misses recipes with dependencies)
23
23
# ))
24
24
#
25
- # This file is formatted by `just _fmt `, which currently eats blank lines a bit (and commits).
25
+ # This file is formatted by `just format `, which currently eats blank lines a bit (and commits).
26
26
#
27
27
# 'set export' makes constants and arguments available as $VAR as well as {{ VAR }}.
28
28
# $ makes just code more like shell code.
@@ -87,13 +87,14 @@ _watchgitdbg *WOPTS:
87
87
BROWSE := ' open'
88
88
89
89
# XXX These often don't work well interpolated as $CMD or {{ CMD }}, not sure why
90
-
91
90
# find GNU tools, eg on mac
91
+
92
92
GDATE := ` type -P gdate || echo date `
93
- GTAR := ` type -P gtar || echo tar `
94
- #GNUTAR := `which gtar >/dev/null && echo gtar || echo tar`
93
+ GTAR := ` type -P gtar || echo tar `
95
94
95
+ #GNUTAR := `which gtar >/dev/null && echo gtar || echo tar`
96
96
# make ghc usable for scripting with -e
97
+
97
98
GHC := ' ghc -ignore-dot-ghci -package-env -'
98
99
GHCI := ' ghci'
99
100
@@ -204,8 +205,8 @@ DOCSOURCEFILES := '
204
205
CONTRIBUTING.md
205
206
' + MANUALSOURCEFILES + COMMANDHELPFILES
206
207
TESTFILES := ` fd ' \.test$' --exclude ledger-compat `
207
- # XXX it's fd-find on gnu/linux ?
208
208
209
+ # XXX it's fd-find on gnu/linux ?
209
210
# # file(s) which require recompilation for a build to have an up-to-date version string
210
211
# VERSIONSOURCEFILE := 'hledger/Hledger/Cli/Version.hs'
211
212
# Two or three-part version string, set as program version in builds made by this makefile.
@@ -542,6 +543,7 @@ get-binaries:
542
543
just symlink-binaries
543
544
544
545
# download hledger version VER for OS (linux, mac windows) and ARCH (x64) from github releases to bin/hledger-VER
546
+
545
547
# On gnu/linux: can't interpolate GTAR here for some reason, and need the shebang line.
546
548
get-binary OS ARCH VER :
547
549
#!/usr/bin/env bash
@@ -622,6 +624,7 @@ samplejournals:
622
624
623
625
# The current OS name, in the form used for hledger release binaries: linux, mac, windows or other.
624
626
# can't use $GHC or {{GHC}} here for some reason
627
+
625
628
OS := ` ghc -ignore-dot-ghci -package-env - -e ' import System.Info' -e ' putStrLn $ case os of "darwin"->"mac"; "mingw32"->"windows"; "linux"->"linux"; _->"other"' `
626
629
627
630
# tools/generatejournal.hs 3 5 5 --chinese > examples/chinese.journal # don't regenerate, keep the simple version
@@ -664,10 +667,8 @@ OS := `ghc -ignore-dot-ghci -package-env - -e 'import System.Info' -e 'putStrLn
664
667
# @bench-balance-many-accts:
665
668
# quickbench -w hledger-1.26,hledger-21ad,ledger -f bench-many-accts.sh -N2
666
669
# #quickbench -w hledger-1.25,hledger-1.28,hledger-1.29,hledger-1.30,hledger-1.31,hledger-1.32,hledger-21ad,ledger -f bench-many-accts.sh -N2
667
-
668
670
# @bench-balance-many-txns:
669
671
# quickbench -w hledger-21ad,ledger -f bench-many-txns.sh -N2
670
-
671
672
# samplejournals bench.sh
672
673
# bench: samplejournals tests/bench.tests tools/simplebench \
673
674
# $(call def-help,bench,\
@@ -687,7 +688,6 @@ OS := `ghc -ignore-dot-ghci -package-env - -e 'import System.Info' -e 'putStrLn
687
688
# run progression benchmark tests and save graphical results\
688
689
# )
689
690
# tools/progressionbench -- -t png -k png
690
-
691
691
# # prof: samplejournals \
692
692
# # $(call def-help,prof,\
693
693
# # generate and archive an execution profile\
0 commit comments