summaryrefslogtreecommitdiff
path: root/Makefile
blob: d4f8f6d85645bb33d9efd6574c7422ec2681c244 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
all:

install:

clean:

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)

theme.stamp: less/variables.less
	+make -C hotdoc_bootstrap_theme LESS_INCLUDE_PATH=$$PWD/less
	@rm -rf hotdoc-private*
	@touch theme.stamp

clean_theme:
	rm -f theme.stamp
	+make -C hotdoc_bootstrap_theme clean

clean: clean_theme

gst_docs_HOTDOC_EXTRA_DEPS = theme.stamp

.PHONY: all install clean

-include $(shell $(HOTDOC) --makefile-path)