doc: refactor Makefile and xmlrules.in code for reusability

A different approach which requires less variables setting
and internal knowledge of the reused code.
Changing from "install" to "not install" is very easy now.

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Gaetan Nadon 2010-11-21 14:27:58 -05:00 • committed by Keith Packard
commit 7250f078c1
7 changed files with 66 additions and 55 deletions

View file

@ -19,14 +19,12 @@
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
XML_FILES = dmx.xml scaled.xml
include $(top_srcdir)/doc/xml/xmlrules.in
doc_sources = dmx.xml scaled.xml
# Developer's documentation is not installed
if ENABLE_DEVEL_DOCS
noinst_DATA = $(BUILT_DOC_FILES)
include $(top_srcdir)/doc/xml/xmlrules-noinst.in
endif
CLEANFILES = $(CLEAN_DOC_FILES)
if HAVE_DOXYGEN