blob: 1a4be6a91346818cd0e0a0330e1e8fbf1fba95c5 [file] [log] [blame]
Christopher Dunn9c91b992015-02-13 11:24:35 -06001# This is only for jsoncpp developers/contributors.
2# We use this to sign releases, generate documentation, etc.
David Demelier5b915512019-04-23 11:12:23 +02003VER?=$(shell cat version.txt)
Christopher Dunnd2fa6642014-09-10 18:01:31 -07004
Christopher Dunn9c91b992015-02-13 11:24:35 -06005default:
6 @echo "VER=${VER}"
7sign: jsoncpp-${VER}.tar.gz
8 gpg --armor --detach-sign $<
9 gpg --verify $<.asc
10 # Then upload .asc to the release.
11jsoncpp-%.tar.gz:
12 curl https://github.com/open-source-parsers/jsoncpp/archive/$*.tar.gz -o $@
13dox:
14 python doxybuild.py --doxygen=$$(which doxygen) --in doc/web_doxyfile.in
Christopher Dunna7ad98f2017-09-10 19:54:23 -050015 rsync -va -c --delete dist/doxygen/jsoncpp-api-html-${VER}/ ../jsoncpp-docs/doxygen/
Christopher Dunn9c91b992015-02-13 11:24:35 -060016 # Then 'git add -A' and 'git push' in jsoncpp-docs.
Christopher Dunnd2fa6642014-09-10 18:01:31 -070017build:
18 mkdir -p build/debug
Gauravc09e1212015-04-23 19:00:56 +053019 cd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_SHARED_LIBS=ON -G "Unix Makefiles" ../..
Christopher Dunnd2fa6642014-09-10 18:01:31 -070020 make -C build/debug
21
22# Currently, this depends on include/json/version.h generated
23# by cmake.
Christopher Dunn9c91b992015-02-13 11:24:35 -060024test-amalgamate:
Christopher Dunnd2fa6642014-09-10 18:01:31 -070025 python2.7 amalgamate.py
26 python3.4 amalgamate.py
Christopher Dunn6c898442015-02-25 10:02:30 -060027 cd dist; gcc -I. -c jsoncpp.cpp
Christopher Dunnd2fa6642014-09-10 18:01:31 -070028
Christopher Dunn88184d12015-04-22 19:43:27 -070029valgrind:
30 valgrind --error-exitcode=42 --leak-check=full ./build/debug/src/test_lib_json/jsoncpp_test
31
Christopher Dunn9c91b992015-02-13 11:24:35 -060032clean:
33 \rm -rf *.gz *.asc dist/
34
Christopher Dunnd2fa6642014-09-10 18:01:31 -070035.PHONY: build