diff options
-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 |