Makefile.am 1.25 KB
Newer Older
1 2 3
SUBDIRS =

docdir = ${prefix}/share/doc/wifidog-@VERSION@
4
html_parent_dir = .
5 6
HTML_HEADER = 
HTML_FOOTER = 
7 8 9

all:

10 11 12 13 14 15 16 17 18
.PHONY: doxygen-trac

doxygen-trac: clean core-doc-trac gtk-gui-doc-trac

%-doc-trac : %-doc
	ln -s ${html_parent_dir}/$< ${html_parent_dir}/$</html

doc: clean core-doc gtk-gui-doc

19
%-doc : %-doc.cfg
20
	rm -rf $@/ refman.pdf
21 22 23 24 25 26 27 28
	$(DOXYGEN) $<
#	$(MAKE) -C latex/ 
#	mv latex/refman.pdf ./refman.pdf


clean-local:
	echo "clean-local: " && pwd
	rm -rf latex/
29
	rm -rf ${html_parent_dir}/*-doc/
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
	rm -f *~
	rm -f doxygen.log
	rm -f doxygen.cfg

maintainer-clean-local: clean-local
	echo "maintainer-clean-local: " && pwd
	rm -rf html refman.pdf

## We borrow guile's convention and use @-...-@ as the substitution
## brackets here, instead of the usual @...@.  This prevents autoconf
## from substituting the values directly into the left-hand sides of
## the sed substitutions.
%.cfg : %.cfg.in
	rm -f $@.tmp
	sed < $< > $@.tmp \
            -e 's:@-top_srcdir-@:${top_srcdir}:g'
	sed < $@.tmp > $@.tmp2 \
47
            -e 's:@-html_dir-@:${html_parent_dir}/$*:g'
48
	rm $@.tmp
49 50 51 52 53 54 55
	sed < $@.tmp2 > $@.tmp3 \
            -e 's:@-html_header-@:${HTML_HEADER}:g'
	rm $@.tmp2
	sed < $@.tmp3 > $@.tmp4 \
            -e 's:@-html_footer-@:${HTML_FOOTER}:g'
	rm $@.tmp3
	mv $@.tmp4 $@