summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: fb9e035331c285076dac0653b67d6022a3386b7e (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
## Build doc files
all-local: html/index.html

html/index.html: $(srcdir)/../include/uriparser/*.h \
		$(srcdir)/../src/*.c \
		$(srcdir)/../src/*.h \
		$(srcdir)/Mainpage
	rm -Rf "$(builddir)/html"
	doxygen Doxyfile
	touch html/index.html


## Clean doc files
clean-local:
	rm -Rf "$(builddir)/html"
	rm -f *.qch


## Clean configure files
distclean-local:
	rm -f config.{log,status} release.sh Doxyfile


## Install doc files
install-data-local:
	$(MKDIR_P) "$(DESTDIR)$(docdir)/html/search"  ## Didn't work with installdirs-local
	$(INSTALL_DATA) html/*.css html/*.html html/*.js html/*.map html/*.md5 html/*.png "$(DESTDIR)$(docdir)/html/"
	$(INSTALL_DATA) html/search/* "$(DESTDIR)$(docdir)/html/search/"
	-$(INSTALL_DATA) *.qch "$(DESTDIR)$(docdir)/"


## Uninstall doc files
uninstall-local:
	rm -Rf "$(DESTDIR)$(docdir)/html"
	rm -f "$(DESTDIR)$(docdir)"/*.qch