Makefile
author Mahlon E. Smith <mahlon@martini.nu>
Mon, 08 Oct 2018 12:31:27 -0700
changeset 4 ffb8b9920057
parent 0 f480e159f575
permissions -rw-r--r--
Re-arrange for use with nimble, updates for nim 0.19.


FILES = src/mongrel2.nim

default: development

debug: ${FILES}
	nim --assertions:on --nimcache:.cache c ${FILES}
	@mv src/mongrel2 .

development: ${FILES}
	# can use gdb with this...
	nim -r --debugInfo --linedir:on --define:testing --nimcache:.cache c ${FILES}
	@mv src/mongrel2 .

debugger: ${FILES}
	nim --debugger:on --nimcache:.cache c ${FILES}
	@mv src/mongrel2 .

release: ${FILES}
	nim -d:release --opt:speed --nimcache:.cache c ${FILES}
	@mv src/mongrel2 .

docs:
	nim doc ${FILES}
	#nim buildIndex ${FILES}

clean:
	cat .hgignore | xargs rm -rf