Implement our own theme, yay!
[platform/upstream/gstreamer.git] / Makefile
1 all:
2
3 install:
4
5 clean:
6
7 HOTDOC ?= hotdoc
8 prefix ?= /usr
9 datadir ?= ${prefix}/share
10 devhelpdir ?= ${datadir}/devhelp/books
11 docdir ?= ${datadir}/doc/${PACKAGE}
12 htmldir ?= ${docdir}
13
14 # emulate Automake well enough for hotdoc.mk
15 AM_V_GEN ?=
16 AMTAR ?= tar
17 mkinstalldirs ?= install -d
18 srcdir = $(CURDIR)
19 top_srcdir = $(CURDIR)
20 builddir = $(CURDIR)
21 top_builddir = $(CURDIR)
22
23 HOTDOC_PROJECTS = gst-docs
24
25 gst_docs_HOTDOC_FLAGS = \
26         --conf-file hotdoc.json \
27         $(NULL)
28
29 theme.stamp: less/variables.less
30         +make -C hotdoc_bootstrap_theme LESS_INCLUDE_PATH=$$PWD/less
31         @rm -rf hotdoc-private*
32         @touch theme.stamp
33
34 clean_theme:
35         rm -f theme.stamp
36         +make -C hotdoc_bootstrap_theme clean
37
38 clean: clean_theme
39
40 gst_docs_HOTDOC_EXTRA_DEPS = theme.stamp
41
42 .PHONY: all install clean
43
44 -include $(shell $(HOTDOC) --makefile-path)