Makefile.am 616 Bytes
Newer Older
Aaron Plattner's avatar
Aaron Plattner committed
1
2
3
all: html
install-data-local: install-html

Aaron Plattner's avatar
Aaron Plattner committed
4
5
6
7
EXTRA_DIST = \
    Doxyfile \
    vdpau_data_flow.png

Aaron Plattner's avatar
Aaron Plattner committed
8
9
10
11
12
13
14
15
16
17
18
19
20
VDPAU_HEADER_DIR := $(top_srcdir)/include
VDPAU_HEADER_FILES := \
    $(VDPAU_HEADER_DIR)/vdpau/vdpau.h \
    $(VDPAU_HEADER_DIR)/vdpau/vdpau_x11.h

export VDPAU_HEADER_DIR
export VDPAU_HEADER_FILES
html-out/%: Doxyfile $(VDPAU_HEADER_FILES)
	$(DOXYGEN) $<

if ENABLE_DOCS
html: html-out/index.html
install-html-local:
Aaron Plattner's avatar
Aaron Plattner committed
21
22
23
24
	$(install_sh) -d "$(DESTDIR)$(docdir)/html"
	$(install_sh) -m 644 html-out/* "$(DESTDIR)$(docdir)/html"
uninstall-local:
	$(RM) -r "$(DESTDIR)$(docdir)/html"
Aaron Plattner's avatar
Aaron Plattner committed
25
26
27
28
endif

clean-local:
	$(RM) -r html-out