diff options
author | Murray Cumming <murrayc@murrayc.com> | 2005-01-17 15:44:13 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2005-01-17 15:44:13 +0000 |
commit | 28374bf646b08967675548f0269b87d90a28655e (patch) | |
tree | c6fb2255f67811d5a88f2494108a546b63f0f618 /docs | |
parent | 6e57a42ed0599ca3c04dd8022e2e283810bea0c3 (diff) | |
download | sigc++-28374bf646b08967675548f0269b87d90a28655e.tar.gz |
Specifying html/index.html instead of just the html directory as a target
2005-01-17 Murray Cumming <murrayc@murrayc.com>
* docs/manual/Makefile.am: Specifying html/index.html instead of
just the html directory as a target seems to fix distcheck problems.
I can also now confirm that the install works on solaris, when using
gmake, though not when using make.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/manual/Makefile.am | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/docs/manual/Makefile.am b/docs/manual/Makefile.am index 1733a48..f11764f 100644 --- a/docs/manual/Makefile.am +++ b/docs/manual/Makefile.am @@ -4,12 +4,14 @@ docbook_docs = $(srcdir)/libsigc_manual.xml include $(top_srcdir)/docs/Makefile_web.am_fragment libsigc_manual = $(web_path_docs)manual -EXTRA_DIST = README $(docbook_docs) +EXTRA_DIST = README $(docbook_docs) html DOCBOOK_STYLESHEET ?= http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl -html: $(srcdir)/libsigc_manual.xml - xsltproc -o html/ --catalogs $(DOCBOOK_STYLESHEET) $(srcdir)/libsigc_manual.xml +html/index.html: $(srcdir)/libsigc_manual.xml + -rm -rf html + $(mkinstalldirs) html + xsltproc -o html/ --catalogs $(DOCBOOK_STYLESHEET) $< libsigc_manual-html.tar.gz: $(srcdir)/html tar -cf - $< | gzip > $@ @@ -27,12 +29,34 @@ libsigc_manual-html.tar.gz: $(srcdir)/html post-lumps: $(srcdir)/libsigc_manual.dvi $(srcdir)/libsigc_manual.ps $(srcdir)/libsigc_manual.pdf $(srcdir)/libsigc_manual-html.tar.gz tar -cf - $^ | ssh $$SSH_OPT $$USER@libsigc.sourceforge.net "cd $(libsigc_manual) ; tar -xvf - ; chmod a+r,g+w * ; chgrp gtkmm *" -post-html: $(srcdir)/html +post-html: $(srcdir)/html/index.html (cd html && tar -cf - *.html | gzip -3 | \ ssh $$SSH_OPT $$USER@libsigc.sourceforge.net "cd $(libsigc_manual)/html ; gunzip | tar -xvf - ; chmod a+r,g+w * ; chgrp gtkmm *") +tutorialdir = $(libsigc_docdir)/tutorial/html -all-local: $(srcdir)/html +install-tutorial: $(srcdir)/html/index.html + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(tutorialdir) + @dir='$(<D)'; for p in $$dir/*.html ; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(tutorialdir)/$$f"; \ + $(INSTALL_DATA) $$p $(DESTDIR)$(tutorialdir)/$$f; \ + done + +uninstall-tutorial: $(srcdir)/html/index.html + @$(NORMAL_UNINSTALL) + @dir='$(<D)'; for p in $$dir/*.html ; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(tutorialdir)/$$f"; \ + rm -f $(DESTDIR)$(tutorialdir)/$$f; \ + done + +install-data-local: install-tutorial + +uninstall-local: uninstall-tutorial + +all-local: $(srcdir)/html/index.html clean-local: -rm -rf $(srcdir)/html |