Makefile
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--
Updates for more recent (v1.6.0) nim.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     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
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     3
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     4
default: development
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     5
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     6
debug: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     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
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     9
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    10
development: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    11
	# can use gdb with this...
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    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
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    14
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    15
debugger: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    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
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    18
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    19
release: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    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
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    22
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    23
docs:
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    24
	nim doc ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    25
	#nim buildIndex ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    26
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    27
clean:
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    28
	cat .hgignore | xargs rm -rf
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    29