Commit c3d56a05 authored by Peter Hutterer's avatar Peter Hutterer

Hook up autotools for publican

automake doesn't seem to provide a sensible method to install a directory of
stuff in $(docdir). Do it manually then.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent f48355ca
SUBDIRS = src protocol
SUBDIRS = src protocol doc
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
......
......@@ -51,8 +51,13 @@ fi
AC_PATH_PROG(XSLTPROC, xsltproc)
AM_CONDITIONAL([HAVE_XSLTPROC], [test $XSLTPROC != ""])
AC_PATH_PROG(PUBLICAN, publican)
AM_CONDITIONAL([HAVE_PUBLICAN], [test $PUBLICAN != ""])
AC_CONFIG_FILES([Makefile
wayland-scanner.m4
doc/Makefile
doc/Wayland/Makefile
src/Makefile
src/wayland-server.pc
src/wayland-client.pc
......
SUBDIRS = Wayland
if HAVE_PUBLICAN
EXTRA_DIST = Wayland
noinst_DATA = Wayland
publican_sources = \
$(srcdir)/en-US/Wayland.ent \
$(srcdir)/en-US/Architecture.xml \
$(srcdir)/en-US/Author_Group.xml \
$(srcdir)/en-US/Book_Info.xml \
$(srcdir)/en-US/Chapter.xml \
$(srcdir)/en-US/Preface.xml \
$(srcdir)/en-US/Wayland.xml \
$(srcdir)/en-US/Revision_History.xml \
$(srcdir)/en-US/images/icon.svg \
$(srcdir)/en-US/images/wayland-architecture.png \
$(srcdir)/en-US/images/wayland.png \
$(srcdir)/en-US/images/x-architecture.png
Wayland: publican.cfg $(publican_sources)
publican build --lang en-US --format html,pdf
clean-local:
-rm -rf Wayland
install-data-local:
$(MKDIR_P) $(DESTDIR)$(docdir)
cp -R $(builddir)/Wayland $(DESTDIR)$(docdir)
uninstall-local:
-rm -rf $(DESTDIR)$(docdir)/Wayland/*
-rmdir $(DESTDIR)$(docdir)/Wayland
EXTRA_DIST = $(publican_sources) publican.cfg
endif
......@@ -4,3 +4,5 @@
xml_lang: "en-US"
type: Book
brand: common
tmp_dir: Wayland
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment