Makefile
author Mahlon E. Smith <mahlon@martini.nu>
Wed, 27 Oct 2021 14:36:25 -0700
changeset 10 d63cce6d1a09
parent 4 2f4e88604125
permissions -rw-r--r--
Updates for more modern (v1.6.0) nim.


FILES = src/stomp.nim
CACHE = .cache

default: development

development: ${FILES}
	nim --debugInfo --assertions:on --profiler:on --stackTrace:on --linedir:on -d:ssl --define:debug --nimcache:${CACHE} c ${FILES}
	@mv src/stomp .

autobuild:
	# find . -depth 1 -name \*.nim | entr -cp make
	echo ${FILES} | entr -c make

debugger: ${FILES}
	nim --debugger:on --nimcache:${CACHE} c ${FILES}

release: ${FILES}
	nim -d:release --opt:speed --panics:on --nimcache:${CACHE} c ${FILES}
	@mv src/stomp .

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

clean:
	cat .hgignore | xargs rm -rf