aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am23
1 files changed, 12 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index 286bef97b786..8a524738858b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,6 @@ errors:
docs:
@(cd doc ; ${MAKE} docs)
-
DIST_FILES_DIR = ~/Dropbox/dist-files/
GH_PAGES_DIR = gh-pages/
GH_PAGES_DIR_VER = gh-pages/${PACKAGE_VERSION}
@@ -49,18 +48,20 @@ upload: dist upload-docs upload-xohtml-files
@echo "Remember to run:"
@echo " gt tag ${PACKAGE_VERSION}"
-upload-docs: docs
- @echo "Uploading libxo-manual.html ... "
- @-[ -d ${GH_PAGES_DIR} ] \
- && echo "Updating manual on gh-pages ..." \
- && mkdir -p ${GH_PAGES_DIR_VER} \
- && cp doc/libxo-manual.html ${GH_PAGES_DIR} \
- && cp doc/libxo-manual.html ${GH_PAGES_DIR_VER} \
+upload-docs: docs upload-html
+
+upload-html:
+ @echo "Uploading html ... "
+ @-[ -d ${GH_PAGES_DIR} -a -d doc/html ] \
+ && echo "Updating html on gh-pages ..." \
+ && mkdir -p ${GH_PAGES_DIR_VER}/html \
+ && cp doc/top-link.html ${GH_PAGES_DIR}/libxo.html \
+ && cp -r doc/html/* ${GH_PAGES_DIR_VER}/html/ \
&& (cd ${GH_PAGES_DIR} \
- && git add ${PACKAGE_VERSION} \
- && git add libxo-manual.html \
+ && git add libxo.html \
+ && git add ${PACKAGE_VERSION}/html \
&& git commit -m 'new docs' \
- libxo-manual.html ${PACKAGE_VERSION} \
+ libxo.html ${PACKAGE_VERSION}/html \
&& git push origin gh-pages ) ; true
upload-xohtml-files: