sieb/Makefile
mahlon a938cf045a Multiple changes.
- Use the ARC memory model for release builds.
 - Move logfile to a command line switch, to avoid chicken-and-egg logging when failing to parse YAML.
 - Fix logic bug: Stop processing rules on a good match
 - Add performance timer and memory used when logging to file
 - Rename 'headers' to 'match' in configuration file, more intention revealing
 - Add logger explicit flock (unlock) at process exit

FossilOrigin-Name: 7c439d99044b8d725c2dc1a806eec14fff7f0675afb14920de3c7c2581907640
2023-06-29 12:58:42 +00:00

34 lines
675 B
Makefile

FILES = src/sieb.nim
default: release
autobuild:
find . -type f -iname \*.nim | entr -c make development
dependencies:
nimble install --depsOnly
development: ${FILES}
# can use gdb with this...
nim --verbosity:2 --debugInfo --assertions:on --stacktrace:on --linedir:on -d:debug -d:nimTypeNames --nimcache:.cache c ${FILES}
mv src/sieb .
debugger: ${FILES}
nim --debugger:on --nimcache:.cache c ${FILES}
mv src/sieb .
release:dependencies ${FILES}
nim -d:release -d:strip --mm:arc -d:lto --opt:speed --nimcache:.cache c ${FILES}
mv src/sieb .
docs:
nim doc ${FILES}
mv src/htmldocs docs
clean:
fossil clean --dotfiles -f -v
clobber:
fossil clean -x -v