2005-09-27 15:10:09 -07:00
|
|
|
|
|
|
|
if BUILD_DOCS
|
|
|
|
|
|
|
|
# install documentation
|
|
|
|
docdir = $(datadir)/$(PACKAGE)/doc
|
|
|
|
|
|
|
|
all-local: doc-build.stamp
|
|
|
|
|
|
|
|
# rule to remove all old created files
|
|
|
|
doc-prepare.stamp:
|
2005-09-29 03:15:47 -07:00
|
|
|
@if test -d html ; then \
|
2005-09-27 15:10:09 -07:00
|
|
|
rm -rf html/ latex/ man/ xml/; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
# rule to build documentation and copy necessary files
|
|
|
|
doc-build.stamp: doc-prepare.stamp
|
|
|
|
@doxygen
|
|
|
|
@cp img/*.png html/
|
|
|
|
|
2005-09-29 03:15:47 -07:00
|
|
|
# rules to clean
|
|
|
|
clean-local:
|
|
|
|
@rm -rf html/ latex/ man/ xml/
|
|
|
|
|
2005-09-27 15:10:09 -07:00
|
|
|
# rule to install the documentation in $(docdir)
|
|
|
|
install-data-local:
|
2005-09-29 03:15:47 -07:00
|
|
|
@if ! test -d $(DESTDIR)$(datadir)/$(PACKAGE); then \
|
|
|
|
mkdir $(DESTDIR)$(datadir)/$(PACKAGE); \
|
2005-09-27 15:10:09 -07:00
|
|
|
fi
|
2005-09-29 03:15:47 -07:00
|
|
|
@if ! test -d $(DESTDIR)$(docdir); then \
|
|
|
|
mkdir $(DESTDIR)$(docdir); \
|
2005-09-27 15:10:09 -07:00
|
|
|
fi
|
2005-09-29 03:15:47 -07:00
|
|
|
@cp -pr html/ man/ latex/ xml/ $(DESTDIR)$(docdir)
|
2005-09-27 15:10:09 -07:00
|
|
|
|
|
|
|
# rule to uninstall the documentation
|
|
|
|
uninstall-local:
|
2005-09-29 03:15:47 -07:00
|
|
|
rm -rf $(DESTDIR)$(docdir)
|
|
|
|
|
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in eet.c
|
|
|
|
|
|
|
|
DISTCLEANFILES = Makefile.in eet.c
|
|
|
|
|
|
|
|
EXTRA_DIST = Doxyfile eet.css foot.html head.html img/
|
2005-09-27 15:10:09 -07:00
|
|
|
|
|
|
|
endif
|