Makefile: improve build_for_travis (#136)

This allows to run it locally more easily.
This commit is contained in:
Daniel Hahler 2019-02-26 11:12:23 +01:00 committed by GitHub
parent 66d451f0b0
commit e1dc37dd6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -35,11 +35,15 @@ manpages:
done
build_for_travis: all
build_for_travis: BUILD_WEB?=/tmp/awesome-build-web
build_for_travis: ASCIIDOC_ICONS_DIR?=/usr/share/asciidoc/icons
build_for_travis:
test -d "$(ASCIIDOC_ICONS_DIR)"
rsync -PaOvz --delete --exclude=.git --chmod=u=rwX,g=rwX,o=rX,Dg+s --exclude src html/ \
$${BUILD_WEB}
"$(BUILD_WEB)"
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s src/build/doc/ \
$${BUILD_WEB}/doc/api
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s /usr/share/asciidoc/icons \
$${BUILD_WEB}/doc/manpages/icons
"$(BUILD_WEB)/doc/api"
rsync -PaOvz --delete --chmod=u=rwX,g=rwX,o=rX,Dg+s $(ASCIIDOC_ICONS_DIR) \
"$(BUILD_WEB)/doc/manpages/icons"
.PHONY: changelogs manpages