Makefile
author Mahlon E. Smith <mahlon@laika.com>
Thu, 10 Dec 2020 17:20:37 -0800
changeset 21 a2fe9ec4cdf2
parent 19 1f09cfb560e0
child 23 89ba1d73b232
permissions -rw-r--r--
Fix docs: exporting.conf example and help verbose/version typo. diff -r 8ab012d41a9c README.md --- a/README.md Sat Jul 25 15:31:28 2020 -0700 +++ b/README.md Thu Dec 10 17:20:01 2020 -0800 @@ -67,10 +67,10 @@ ``` [exporting:global] - enabled = yes + enabled = yes + hostname = your-hostname [json:timescale] - hostname = your-hostname enabled = yes data source = average destination = localhost:14866 diff -r 8ab012d41a9c netdata_tsrelay.nim --- a/netdata_tsrelay.nim Sat Jul 25 15:31:28 2020 -0700 +++ b/netdata_tsrelay.nim Thu Dec 10 17:20:01 2020 -0800 @@ -85,7 +85,7 @@ Alter the maximum time (in ms) an open socket waits for data before processing the sample. Default: 500ms. - -v --verbose: + -v --version: Display version number. """


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 --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES}

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

clean:
	cat .hgignore | xargs rm -rf