Skip to content

Commit 9c91b99

Browse files
committed
rules for signing and doc-generation
1 parent e7233bf commit 9c91b99

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

dev.makefile

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
1-
all: build test-amalgamate
1+
# This is only for jsoncpp developers/contributors.
2+
# We use this to sign releases, generate documentation, etc.
3+
VER?=$(shell cat version)
24

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.
317
build:
418
mkdir -p build/debug
519
cd build/debug; cmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_SHARED=ON -G "Unix Makefiles" ../..
620
make -C build/debug
721

822
# Currently, this depends on include/json/version.h generated
923
# by cmake.
10-
test-amalgamate: build
24+
test-amalgamate:
1125
python2.7 amalgamate.py
1226
python3.4 amalgamate.py
1327

28+
clean:
29+
\rm -rf *.gz *.asc dist/
30+
1431
.PHONY: build

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.1
1+
1.4.1

0 commit comments

Comments
 (0)