From b531ff3ed2ad841b716ba370fd43bbe8f06f1185 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Fri, 29 Jan 2010 15:05:37 -0500 Subject: doc: use new macros XORG_WITH_GROFF and PS2PDF These control the usage of doc tools Also use XORG_ENABLE_DOCS to control generation of docs Signed-off-by: Gaetan Nadon --- Makefile.am | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index af68a7a..a824f02 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,13 +32,15 @@ dist-hook: ChangeLog INSTALL # Rules to convert documentation from troff to other formats doc_sources = Xtrans.mm +if ENABLE_DOCS +if HAVE_GROFF + if HAVE_PS2PDF printable_format = .pdf else printable_format = .ps endif -if BUILD_DOCS doc_DATA = $(doc_sources:.mm=.txt) \ $(doc_sources:.mm=$(printable_format)) \ $(doc_sources:.mm=.html) @@ -69,4 +71,5 @@ SUFFIXES = .mm .ps .txt .html .pdf .ps.pdf: $(AM_V_GEN) $(PS2PDF) $< $@ -endif BUILD_DOCS +endif HAVE_GROFF +endif ENABLE_DOCS -- cgit v1.2.1