Modernize project structure.
FossilOrigin-Name: 768f7aa3700a6eadf3b931f19f8da6c8c13470d0febceb13619c26751ed79901
This commit is contained in:
parent
89d97e1bf5
commit
ae7b77df4c
3 changed files with 16 additions and 33 deletions
25
Makefile
25
Makefile
|
|
@ -1,25 +0,0 @@
|
|||
|
||||
FILES = tnetstring.nim
|
||||
|
||||
default: development
|
||||
|
||||
debug: ${FILES}
|
||||
nim --assertions:on --nimcache:.cache c ${FILES}
|
||||
|
||||
development: ${FILES}
|
||||
# can use gdb with this...
|
||||
nim -r --debugInfo --linedir:on --define:testing --nimcache:.cache c ${FILES}
|
||||
|
||||
debugger: ${FILES}
|
||||
nim --debugger:on --nimcache:.cache c ${FILES}
|
||||
|
||||
release: ${FILES}
|
||||
nim -d:release --opt:speed --nimcache:.cache c ${FILES}
|
||||
|
||||
docs:
|
||||
nim doc ${FILES}
|
||||
#nim buildIndex ${FILES}
|
||||
|
||||
clean:
|
||||
cat .hgignore | xargs rm -rf
|
||||
|
||||
|
|
@ -1,10 +1,18 @@
|
|||
[Package]
|
||||
name = "tnetstring"
|
||||
version = "0.1.1"
|
||||
author = "Mahlon E. Smith <mahlon@martini.nu>"
|
||||
description = "Parsing and serializing for the TNetstring format."
|
||||
license = "MIT"
|
||||
version = "0.2.0"
|
||||
author = "Mahlon E. Smith"
|
||||
description = "Parsing and serialization for the TNetstring format."
|
||||
license = "BSD-3-Clause"
|
||||
srcDir = "src"
|
||||
|
||||
[Deps]
|
||||
Requires: "nim >= 0.11.0"
|
||||
requires "nim ^= 2.0.0"
|
||||
|
||||
task test, "Run the test suite.":
|
||||
exec "testament all"
|
||||
exec "testament html"
|
||||
|
||||
task clean, "Remove all non-repository artifacts.":
|
||||
exec "fossil clean -x"
|
||||
|
||||
task docs, "Generate automated documentation.":
|
||||
exec "nim doc --project --outdir:docs src/tnetstring.nim"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue