Skip to content

Commit

Permalink
docs: add basic Makefile.am
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Oct 5, 2010
1 parent d895d18 commit 19ceca4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ AUTOMAKE_OPTIONS = foreign

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = docs

dist_doc_DATA = example.conf \
COPYING.applications \
COPYING.libraries \
Expand Down
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CXX
AC_PROG_RANLIB
AC_PATH_PROGS(PUBLICAN, publican)
AC_CHECK_PROGS([PKGCONFIG], [pkg-config])

## local helper functions
Expand Down Expand Up @@ -173,6 +174,9 @@ CFLAGS="$ENV_CFLAGS $OPT_CFLAGS $GDB_FLAGS \
CPPFLAGS="$ENV_CPPFLAGS"
LDFLAGS="$ENV_LDFLAGS"

AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([
Makefile
docs/Makefile
])

AC_OUTPUT
18 changes: 18 additions & 0 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
MAINTAINERCLEANFILES = Makefile.in

docbook = Kronosnet

DOCBOOK_FORMATS := html

%.txt: $(wildcard %/en-US/*.xml)
@echo Building $*
cd $* && $(PUBLICAN) build --publish --langs=all --formats=$(DOCBOOK_FORMATS)
touch $@

docbook_txt = $(docbook:%=%.txt)

all-local: $(docbook_txt) */publican.cfg

clean-local:
@rm -rf $(docbook_txt)
@for book in $(docbook); do rm -rf $$book/tmp $$book/publish; done

0 comments on commit 19ceca4

Please sign in to comment.