Makefile
author Zach Smith <zd@zdsmith.com>
Wed, 15 May 2019 14:53:03 -0700
changeset 6 7d977f308c75
parent 4 2f4e88604125
child 10 d63cce6d1a09
permissions -rw-r--r--
Incorporate a series of patches from Zack Smith. - Allow a vhosts to not require a slash (use %2F in the URI, ignore literal '/') - Support setting a custom 'id' subscription


FILES = src/stomp.nim
CACHE = .cache

default: development

development: ${FILES}
	nim --debugInfo --assertions: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 --nimcache:${CACHE} c ${FILES}
	@mv src/stomp .

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

clean:
	cat .hgignore | xargs rm -rf