From e1dc37dd6a7d9fa3c791fa500ea9e713c32d2887 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 26 Feb 2019 11:12:23 +0100 Subject: [PATCH] Makefile: improve build_for_travis (#136) This allows to run it locally more easily. --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 133d2e1..4018704 100644 --- a/Makefile +++ b/Makefile @@ -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