Debian Codegraph @

dev.makefile

raw
1 # This is only for jsoncpp developers/contributors.
2 # We use this to sign releases, generate documentation, etc.
3 VER?=$(shell cat version)
4
5 default:
6 @echo "VER=${VER}"
7 update-version:
8 perl get_version.pl meson.build >| version
9 sign: jsoncpp-${VER}.tar.gz
10 gpg --armor --detach-sign $<
11 gpg --verify $<.asc
12 # Then upload .asc to the release.
13 jsoncpp-%.tar.gz:
14 curl https://github.com/open-source-parsers/jsoncpp/archive/$*.tar.gz -o $@
15 dox:
16 python doxybuild.py --doxygen=$$(which doxygen) --in doc/web_doxyfile.in
17 rsync -va -c --delete dist/doxygen/jsoncpp-api-html-${VER}/ ../jsoncpp-docs/doxygen/
18 # Then 'git add -A' and 'git push' in jsoncpp-docs.
19 build:
20 mkdir -p build/debug
21 cd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_SHARED_LIBS=ON -G "Unix Makefiles" ../..
22 make -C build/debug
23
24 # Currently, this depends on include/json/version.h generated
25 # by cmake.
26 test-amalgamate:
27 python2.7 amalgamate.py
28 python3.4 amalgamate.py
29 cd dist; gcc -I. -c jsoncpp.cpp
30
31 valgrind:
32 valgrind --error-exitcode=42 --leak-check=full ./build/debug/src/test_lib_json/jsoncpp_test
33
34 clean:
35 \rm -rf *.gz *.asc dist/
36
37 .PHONY: build