author | Mahlon E. Smith <mahlon@martini.nu> |
Wed, 27 Oct 2021 13:57:16 -0700 | |
changeset 6 | d49437ff8f2f |
parent 4 | ffb8b9920057 |
permissions | -rw-r--r-- |
0 | 1 |
|
4
ffb8b9920057
Re-arrange for use with nimble, updates for nim 0.19.
Mahlon E. Smith <mahlon@martini.nu>
parents:
0
diff
changeset
|
2 |
FILES = src/mongrel2.nim |
0 | 3 |
|
4 |
default: development |
|
5 |
||
6 |
debug: ${FILES} |
|
7 |
nim --assertions:on --nimcache:.cache c ${FILES} |
|
4
ffb8b9920057
Re-arrange for use with nimble, updates for nim 0.19.
Mahlon E. Smith <mahlon@martini.nu>
parents:
0
diff
changeset
|
8 |
@mv src/mongrel2 . |
0 | 9 |
|
10 |
development: ${FILES} |
|
11 |
# can use gdb with this... |
|
12 |
nim -r --debugInfo --linedir:on --define:testing --nimcache:.cache c ${FILES} |
|
4
ffb8b9920057
Re-arrange for use with nimble, updates for nim 0.19.
Mahlon E. Smith <mahlon@martini.nu>
parents:
0
diff
changeset
|
13 |
@mv src/mongrel2 . |
0 | 14 |
|
15 |
debugger: ${FILES} |
|
16 |
nim --debugger:on --nimcache:.cache c ${FILES} |
|
4
ffb8b9920057
Re-arrange for use with nimble, updates for nim 0.19.
Mahlon E. Smith <mahlon@martini.nu>
parents:
0
diff
changeset
|
17 |
@mv src/mongrel2 . |
0 | 18 |
|
19 |
release: ${FILES} |
|
20 |
nim -d:release --opt:speed --nimcache:.cache c ${FILES} |
|
4
ffb8b9920057
Re-arrange for use with nimble, updates for nim 0.19.
Mahlon E. Smith <mahlon@martini.nu>
parents:
0
diff
changeset
|
21 |
@mv src/mongrel2 . |
0 | 22 |
|
23 |
docs: |
|
24 |
nim doc ${FILES} |
|
25 |
#nim buildIndex ${FILES} |
|
26 |
||
27 |
clean: |
|
28 |
cat .hgignore | xargs rm -rf |
|
29 |