Makefile
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 27 Oct 2021 14:52:54 -0700
changeset 27 38fef53ec76f
parent 23 89ba1d73b232
permissions -rw-r--r--
Use standard library namespacing.


FILES = netdata_tsrelay.nim

default: release

autobuild:
	find . -type f -iname \*.nim | entr -c make development

development: ${FILES}
	# can use gdb with this...
	nim --debugInfo --assertions:on --linedir:on -d:testing -d:nimTypeNames --nimcache:.cache c ${FILES}

debugger: ${FILES}
	nim --debugger:on --nimcache:.cache c ${FILES}

release: ${FILES}
	nim -d:release -d:nimDebugDlOpen --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}

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

clean:
	cat .hgignore | xargs rm -rf