integ/restapi-doc/restapi-doc/Makefile
Scott Little d22c40d6b0 Increase the restapi-doc API version to 1.9.0
Change-Id: Ib3c276e2dbf2fcf434ddaa1c2611dd4ad12887b8
Signed-off-by: Don Penney <don.penney@windriver.com>
Signed-off-by: Jack Ding <jack.ding@windriver.com>
2018-07-23 10:36:19 -04:00

33 lines
916 B
Makefile

# increment this every release
API_VERSION := "1.9.0"
build:
@git status > /dev/null ; \
if [ $$? -ne 0 ] ; then \
echo CREATING DUMMY GIT ; \
git init ; \
fi
if [ ! -e mvn.repo.tgz ]; then \
echo "Maven Cache Not Found!" ; \
exit 1 ; \
fi
mkdir -p mvn.repo
tar -xvzf ./mvn.repo.tgz -C ./mvn.repo/
mvn clean generate-sources -o -Dmaven.repo.local=./mvn.repo/
mkdir -p target/wrs-restapi-doc-$(API_VERSION)/
cp rest-api-usage-example.pdf target/wrs-restapi-doc-$(API_VERSION)/
cp -R api-ref-guides/target/docbkx/pdf target/wrs-restapi-doc-$(API_VERSION)/
cp -R api-ref/target/docbkx/html target/wrs-restapi-doc-$(API_VERSION)/
cd target; tar -czvf ../wrs-restapi-doc-$(API_VERSION).tgz wrs-restapi-doc-$(API_VERSION)
@echo 'wrs-restapi-doc-$(API_VERSION).tgz' is ready
clean:
mvn clean -o -Dmaven.repo.local=./mvn.repo/
rm -f wrs-restapi-doc-*.tgz
rm -rf target
rm -rf mvn.repo