dev.makefile 1.1 KB

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