From 588a4b204ba7d0c91b7a36acc834de5750608825 Mon Sep 17 00:00:00 2001 From: mszulecki Date: Mon, 11 Jun 2007 23:21:52 +0000 Subject: Add basic HTML documentation generation and installation. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@27 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- Makefile.am | 2 +- configure.ac | 3 ++- doc/Makefile.am | 22 ++++++++++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 doc/Makefile.am diff --git a/Makefile.am b/Makefile.am index cde33b1..6013d09 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = src po +SUBDIRS = src po doc EXTRA_DIST= \ AUTHORS \ diff --git a/configure.ac b/configure.ac index c730499..978ff27 100644 --- a/configure.ac +++ b/configure.ac @@ -37,7 +37,7 @@ fi AC_SUBST(GDC) AC_SUBST(GDC_VERSION,[$($GDC --version | grep -P -o "(?<=\()gdc (.*?)(?=,)")]) -AC_SUBST(DFLAGS, "-g -O2") +AC_SUBST(DFLAGS, "-g -O2 -fdoc -fdoc-dir=$(pwd)/doc") AC_SUBST(DEPS_CFLAGS) AC_SUBST(DEPS_LIBS) @@ -47,6 +47,7 @@ config.d Makefile src/Makefile po/Makefile.in +doc/Makefile ]) AC_OUTPUT() diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..d42603b --- /dev/null +++ b/doc/Makefile.am @@ -0,0 +1,22 @@ +TARGET_DIR=$(docdir) + +clean-local: + cd $(top_srcdir) && rm -rf doc/*.html + +install-data-local: + installfiles=`echo $(top_srcdir)/doc/*.html`; \ + if test "$$installfiles" = '$(top_srcdir)/doc/*.html'; \ + then echo '-- Nothing to install' ; \ + else \ + $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR); \ + for i in $$installfiles; do \ + echo '-- Installing '$$i ; \ + $(INSTALL_DATA) $$i $(DESTDIR)$(TARGET_DIR); \ + done; \ + fi + +uninstall-local: + rm -rf $(DESTDIR)$(TARGET_DIR) + +DISTCLEANFILES = \ + Makefile.in -- cgit v1.1-32-gdbae