blob: 710aafeafef9d9f78e1a1d919826b4da30d2e67f [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.
3VER?=$(shell cat version)
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
15 rsync -va --delete dist/doxygen/jsoncpp-api-html-${VER}/ ../jsoncpp-docs/doxygen/
16 # Then 'git add -A' and 'git push' in jsoncpp-docs.
Christopher Dunnd2fa6642014-09-10 18:01:31 -070017build:
18 mkdir -p build/debug
Christopher Dunnb2a1ca52014-09-16 12:25:54 -070019 cd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_SHARED=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 Dunn9c91b992015-02-13 11:24:35 -060029clean:
30 \rm -rf *.gz *.asc dist/
31
Christopher Dunnd2fa6642014-09-10 18:01:31 -070032.PHONY: build