summaryrefslogtreecommitdiff
path: root/tools/jsonproc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/jsonproc')
-rwxr-xr-xtools/jsonproc/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/jsonproc/Makefile b/tools/jsonproc/Makefile
index 69093a216..47198b171 100755
--- a/tools/jsonproc/Makefile
+++ b/tools/jsonproc/Makefile
@@ -1,4 +1,4 @@
-CXX := g++
+CXX ?= g++
CXXFLAGS := -Wall -std=c++11 -O2
@@ -8,7 +8,10 @@ SRCS := jsonproc.cpp
HEADERS := jsonproc.h inja.hpp nlohmann/json.hpp
-.PHONY: clean
+.PHONY: all clean
+
+all: jsonproc
+ @:
jsonproc: $(SRCS) $(HEADERS)
$(CXX) $(CXXFLAGS) $(INCLUDES) $(SRCS) -o $@ $(LDFLAGS)