-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 720 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: all clean style check
# use local checkout because the v1.1.0 release was 2016
CXXFLAGS = -I./rapidjson/include
TARGETS= load_json.oct save_json.oct
MKOCT=mkoctfile
OCT=octave
#force legacy test build
#MKOCT=mkoctfile-4.2.2
#OCT=octave-4.2.2
all: $(TARGETS)
rapidjson:
git clone https://github.com/miloyip/rapidjson.git
cd rapidjson && git checkout 35e480fc4ddf4ec4f7ad34d96353eef0aabf002d
%.oct: %.cc rapidjson
$(MKOCT) -Wall -Wextra $(CXXFLAGS) $<
style:
astyle --style=gnu -s2 -n *.cc
check: load_json.oct save_json.oct
$(OCT) --no-gui-libs --eval "test load_json"
$(OCT) --no-gui-libs --eval "test save_json"
clean:
rm -f *.o *.oct octave-workspace
rm -f $(TARGETS)
$(MAKE) -C tests clean