fi; \
export DIR=$(DOC_BASE)/gstreamer/$$DOCVERSION/$(DOC); \
ssh $(DOC_SERVER) mkdir -p $$DIR; \
- if echo $(FORMATS) | grep html > /dev/null; then export SRC="$$SRC html"; fi; \
+ if echo $(FORMATS) | grep html > /dev/null; then \
+ echo "Preparing docs for upload (rebasing cross-references) ..." ; \
+ if test x$(builddir) != x$(srcdir); then \
+ echo "make upload can only be used if srcdir == builddir"; \
+ exit 1; \
+ fi; \
+ gtkdoc-rebase --online --html-dir=$(builddir)/html ; \
+ export SRC="$$SRC html"; \
+ fi; \
if echo $(FORMATS) | grep ps > /dev/null; then export SRC="$$SRC $(DOC).ps"; fi; \
if echo $(FORMATS) | grep pdf > /dev/null; then export SRC="$$SRC $(DOC).pdf"; fi; \
echo Uploading $$SRC to $(DOC_SERVER):$$DIR; \
rsync -rv -e ssh --delete $$SRC $(DOC_SERVER):$$DIR; \
ssh $(DOC_SERVER) chmod -R g+w $$DIR; \
+ if echo $(FORMATS) | grep html > /dev/null; then \
+ echo "Un-preparing docs for upload (rebasing cross-references) ..." ; \
+ gtkdoc-rebase --html-dir=$(builddir)/html ; \
+ fi; \
echo Done