2016-10-15 23:53:38 +00:00
|
|
|
all:
|
|
|
|
|
|
|
|
install:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
2016-10-09 14:39:20 +00:00
|
|
|
HOTDOC ?= hotdoc
|
|
|
|
prefix ?= /usr
|
|
|
|
datadir ?= ${prefix}/share
|
|
|
|
devhelpdir ?= ${datadir}/devhelp/books
|
|
|
|
docdir ?= ${datadir}/doc/${PACKAGE}
|
|
|
|
htmldir ?= ${docdir}
|
|
|
|
|
|
|
|
# emulate Automake well enough for hotdoc.mk
|
|
|
|
AM_V_GEN ?=
|
|
|
|
AMTAR ?= tar
|
|
|
|
mkinstalldirs ?= install -d
|
|
|
|
srcdir = $(CURDIR)
|
|
|
|
top_srcdir = $(CURDIR)
|
|
|
|
builddir = $(CURDIR)
|
|
|
|
top_builddir = $(CURDIR)
|
|
|
|
|
|
|
|
HOTDOC_PROJECTS = gst-docs
|
|
|
|
|
|
|
|
gst_docs_HOTDOC_FLAGS = \
|
|
|
|
--conf-file hotdoc.json \
|
|
|
|
$(NULL)
|
|
|
|
|
2016-11-05 08:18:49 +00:00
|
|
|
theme/theme.stamp: theme/less/variables.less
|
|
|
|
+make -C theme/hotdoc_bootstrap_theme LESS_INCLUDE_PATH=$$PWD/theme/less
|
2016-10-15 23:53:38 +00:00
|
|
|
@rm -rf hotdoc-private*
|
2016-11-05 08:18:49 +00:00
|
|
|
@touch theme/theme.stamp
|
2016-10-09 14:39:20 +00:00
|
|
|
|
2016-10-15 23:53:38 +00:00
|
|
|
clean_theme:
|
2016-11-05 08:18:49 +00:00
|
|
|
rm -f theme/theme.stamp
|
|
|
|
+make -C theme/hotdoc_bootstrap_theme clean
|
2016-10-09 14:39:20 +00:00
|
|
|
|
2016-10-15 23:53:38 +00:00
|
|
|
clean: clean_theme
|
|
|
|
|
2016-11-05 08:18:49 +00:00
|
|
|
gst_docs_HOTDOC_EXTRA_DEPS = theme/theme.stamp
|
2016-10-09 14:39:20 +00:00
|
|
|
|
|
|
|
.PHONY: all install clean
|
|
|
|
|
|
|
|
-include $(shell $(HOTDOC) --makefile-path)
|
2016-11-08 13:58:35 +00:00
|
|
|
|
|
|
|
# These variables define the location of the online docs
|
|
|
|
#
|
|
|
|
# If your local username and your fdo username differ, you
|
|
|
|
# will need to add an entry for gstreamer.freedesktop.org
|
|
|
|
# in your ~/.ssh/config with the right username for the server.
|
|
|
|
#
|
|
|
|
# DOC_SERVER = people.freedesktop.org
|
|
|
|
# DOC_BASE = public_html/gst-docs
|
|
|
|
DOC_SERVER = gstreamer.freedesktop.org
|
2016-11-28 13:03:32 +00:00
|
|
|
DOC_BASE = /srv/gstreamer.freedesktop.org/public_html/documentation
|
2016-11-08 13:58:35 +00:00
|
|
|
|
|
|
|
# The local build directory with the generated HTML output
|
|
|
|
BUILT_DOC_DIR = $(builddir)/built_doc/html/
|
|
|
|
|
|
|
|
upload: all
|
|
|
|
rsync -rvaz -e ssh --links --delete $(BUILT_DOC_DIR) $(DOC_SERVER):$(DOC_BASE)
|
|
|
|
ssh $(DOC_SERVER) "chmod -R g+w $(DOC_BASE); chgrp -R gstreamer $(DOC_BASE)"
|