summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
blob: 5814a0c07cb2d13d6876103a4f7bc3ccc424490b (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
## 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"  ## Didn't work with installdirs-local
	$(INSTALL_DATA) html/*.{css,html,png} "$(DESTDIR)$(docdir)/html/"
	-$(INSTALL_DATA) *.qch "$(DESTDIR)$(docdir)/"


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