Makefile
author Mahlon E. Smith <mahlon@martini.nu>
Tue, 15 Sep 2015 11:28:40 -0700
changeset 3 ecde1a332692
parent 0 f480e159f575
child 4 ffb8b9920057
permissions -rw-r--r--
I'm not sure how I missed this one. Ssssh. Nothing to see here.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     1
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     2
FILES = mongrel2.nim
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}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     8
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
     9
development: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    10
	# can use gdb with this...
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    11
	nim -r --debugInfo --linedir:on --define:testing --nimcache:.cache c ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    12
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    13
debugger: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    14
	nim --debugger:on --nimcache:.cache c ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    15
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    16
release: ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    17
	nim -d:release --opt:speed --nimcache:.cache c ${FILES}
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
docs:
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    20
	nim doc ${FILES}
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    21
	#nim buildIndex ${FILES}
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
clean:
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    24
	cat .hgignore | xargs rm -rf
f480e159f575 Initial commit.
Mahlon E. Smith <mahlon@martini.nu>
parents:
diff changeset
    25