2023-06-15 17:08:49 +00:00
|
|
|
|
2023-06-15 17:58:22 +00:00
|
|
|
FILES = src/sieb.nim
|
2023-06-15 17:08:49 +00:00
|
|
|
|
|
|
|
|
default: release
|
|
|
|
|
|
|
|
|
|
autobuild:
|
|
|
|
|
find . -type f -iname \*.nim | entr -c make development
|
|
|
|
|
|
2023-06-15 17:58:22 +00:00
|
|
|
dependencies:
|
|
|
|
|
nimble install --depsOnly
|
|
|
|
|
|
2023-06-15 17:08:49 +00:00
|
|
|
development: ${FILES}
|
|
|
|
|
# can use gdb with this...
|
|
|
|
|
nim --debugInfo --assertions:on --linedir:on -d:testing -d:nimTypeNames --nimcache:.cache c ${FILES}
|
|
|
|
|
|
|
|
|
|
debugger: ${FILES}
|
|
|
|
|
nim --debugger:on --nimcache:.cache c ${FILES}
|
|
|
|
|
|
2023-06-15 17:58:22 +00:00
|
|
|
release:dependencies ${FILES}
|
2023-06-15 17:08:49 +00:00
|
|
|
nim -d:release -d:nimDebugDlOpen --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}
|
2023-06-15 17:58:22 +00:00
|
|
|
mv src/sieb .
|
2023-06-15 17:08:49 +00:00
|
|
|
|
|
|
|
|
docs:
|
|
|
|
|
nim doc ${FILES}
|
|
|
|
|
#nim buildIndex ${FILES}
|
|
|
|
|
|
|
|
|
|
clean:
|
2023-06-15 17:58:22 +00:00
|
|
|
fossil clean --dotfiles -f -v
|
|
|
|
|
|
|
|
|
|
clobber:
|
|
|
|
|
fossil clean -x -v
|
2023-06-15 17:08:49 +00:00
|
|
|
|