diff options
author | 2007-06-11 23:21:52 +0000 | |
---|---|---|
committer | 2007-06-11 23:21:52 +0000 | |
commit | 588a4b204ba7d0c91b7a36acc834de5750608825 (patch) | |
tree | 6da2f70c049248c347200b5c5879030088288d8c | |
parent | 4319df5e65fd6c1c8a3aee369773db4add185093 (diff) | |
download | dskel-588a4b204ba7d0c91b7a36acc834de5750608825.tar.gz dskel-588a4b204ba7d0c91b7a36acc834de5750608825.tar.bz2 |
Add basic HTML documentation generation and installation.
git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@27 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | doc/Makefile.am | 22 |
3 files changed, 25 insertions, 2 deletions
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 |