move JSON_INDENT to config.mk

This commit is contained in:
Jan-Piet Mens
2015-09-11 10:35:11 +02:00
parent c7b5bb4d9b
commit 22b56ab5ce
3 changed files with 9 additions and 7 deletions
+6
View File
@@ -33,6 +33,12 @@ ifeq ($(HAVE_HTTP),yes)
LIBS += -lssl
endif
ifeq ($(JSON_INDENT),yes)
CFLAGS += -DJSON_INDENT="\" \""
else
CFLAGS += -DJSON_INDENT=NULL
endif
CFLAGS += -DSTORAGEDEFAULT=\"$(STORAGEDEFAULT)\"
-7
View File
@@ -11,10 +11,3 @@
*/
#define DEFAULT_HISTORY_HOURS 6
/*
* Indented JSON or not? Choose.
*/
#define JSON_INDENT " " /* indented */
// #define JSON_INDENT NULL /* not indented */
+3
View File
@@ -25,3 +25,6 @@ MOSQUITTO_LIB = -L/usr/lib
GHASHPREC = 7
# Should the JSON emitted by recorder be indented? (i.e. beautified)
# yes or no
JSON_INDENT ?= yes