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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
## $Id: Makefile.am,v 1.20 2008/06/01 18:40:28 sebdiaz Exp $
CLEANFILES = *~ stamp
# docdir = $(prefix)/doc/$(PACKAGE)-$(VERSION)
FILES = index.tmpl license.tmpl lists.tmpl bugs.tmpl demos.tmpl \
cgi-overview.tmpl tutorial.tmpl lib-overview.tmpl COPYING COPYING.LIB \
COPYING.DOC header.html footer.html cgicc-doc.css
IMAGES = cgicc.png gnu-head-sm.jpg
EXTRA_DIST = html stamp index.tmpl license.tmpl lists.tmpl bugs.tmpl demos.tmpl \
cgi-overview.tmpl tutorial.tmpl lib-overview.tmpl COPYING COPYING.LIB \
COPYING.DOC header.html footer.html cgicc-doc.css cgicc.png gnu-head-sm.jpg
SEDCMD1 = s/$$title/GNU cgicc documentation version $(VERSION)/g
SEDCMD2 = s/$$(VERSION)/$(VERSION)/g
all: stamp
clean-local:
rm -rf html
install-data-local:
$(mkinstalldirs) $(DESTDIR)@htmldir@
for file in $(srcdir)/html/*; do \
bn="`basename $$file`"; \
$(INSTALL_DATA) $$file $(DESTDIR)@htmldir@/$$bn; \
done
uninstall-local:
for file in $(srcdir)/html/*; do \
bn="`basename $$file`"; \
rm -f $(DESTDIR)@htmldir@/$$bn; \
done
## Dummy rule to build a timestamp file
stamp: Doxyfile $(FILES) $(top_srcdir)/cgicc/*.h $(top_srcdir)/demo/*.cpp
$(MAKE) html-doc
touch $@
## Generate documentation
html-doc:
if test ! -d html; then \
mkdir html; \
fi;
DATE=`date '+%-d %b %Y'` VERSION=$(VERSION) $(DOXYGEN) Doxyfile
cp $(IMAGES) cgicc-doc.css html
mv html/index.html html/index.html.bak
sed -e '$(SEDCMD1)' -e '$(SEDCMD2)' html/index.html.bak > html/index.html
rm -f html/index.html.bak
|