Christopher Dunn | 9c91b99 | 2015-02-13 11:24:35 -0600 | [diff] [blame] | 1 | # This is only for jsoncpp developers/contributors. |
| 2 | # We use this to sign releases, generate documentation, etc. |
| 3 | VER?=$(shell cat version) |
Christopher Dunn | d2fa664 | 2014-09-10 18:01:31 -0700 | [diff] [blame] | 4 | |
Christopher Dunn | 9c91b99 | 2015-02-13 11:24:35 -0600 | [diff] [blame] | 5 | default: |
| 6 | @echo "VER=${VER}" |
| 7 | sign: jsoncpp-${VER}.tar.gz |
| 8 | gpg --armor --detach-sign $< |
| 9 | gpg --verify $<.asc |
| 10 | # Then upload .asc to the release. |
| 11 | jsoncpp-%.tar.gz: |
| 12 | curl https://github.com/open-source-parsers/jsoncpp/archive/$*.tar.gz -o $@ |
| 13 | dox: |
| 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 Dunn | d2fa664 | 2014-09-10 18:01:31 -0700 | [diff] [blame] | 17 | build: |
| 18 | mkdir -p build/debug |
Christopher Dunn | b2a1ca5 | 2014-09-16 12:25:54 -0700 | [diff] [blame] | 19 | cd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_SHARED=ON -G "Unix Makefiles" ../.. |
Christopher Dunn | d2fa664 | 2014-09-10 18:01:31 -0700 | [diff] [blame] | 20 | make -C build/debug |
| 21 | |
| 22 | # Currently, this depends on include/json/version.h generated |
| 23 | # by cmake. |
Christopher Dunn | 9c91b99 | 2015-02-13 11:24:35 -0600 | [diff] [blame] | 24 | test-amalgamate: |
Christopher Dunn | d2fa664 | 2014-09-10 18:01:31 -0700 | [diff] [blame] | 25 | python2.7 amalgamate.py |
| 26 | python3.4 amalgamate.py |
Christopher Dunn | 6c89844 | 2015-02-25 10:02:30 -0600 | [diff] [blame] | 27 | cd dist; gcc -I. -c jsoncpp.cpp |
Christopher Dunn | d2fa664 | 2014-09-10 18:01:31 -0700 | [diff] [blame] | 28 | |
Christopher Dunn | 9c91b99 | 2015-02-13 11:24:35 -0600 | [diff] [blame] | 29 | clean: |
| 30 | \rm -rf *.gz *.asc dist/ |
| 31 | |
Christopher Dunn | d2fa664 | 2014-09-10 18:01:31 -0700 | [diff] [blame] | 32 | .PHONY: build |