xenocara/lib/libXcomposite/man/Makefile.am

49 lines
1.1 KiB
Makefile
Raw Normal View History

2007-09-30 00:12:46 -06:00
libmandir = $(LIB_MAN_DIR)
libman_xml = Xcomposite.xml
libman_PRE = $(libman_xml:xml=man) \
$(Xcomposite_shadows:=.man)
2007-09-30 00:12:46 -06:00
Xcomposite_shadows = \
2007-09-30 00:12:46 -06:00
XCompositeQueryExtension \
XCompositeQueryVersion \
XCompositeVersion \
XCompositeRedirectWindow \
XCompositeRedirectSubwindows \
XCompositeUnredirectWindow \
XCompositeUnredirectSubwindows \
XCompositeCreateRegionFromBorderClip \
XCompositeNameWindowPixmap \
XCompositeGetOverlayWindow \
XCompositeReleaseOverlayWindow
2010-07-17 09:07:18 -06:00
if INSTALL_MANPAGES
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@)
2010-07-17 09:07:18 -06:00
endif
2007-09-30 00:12:46 -06:00
EXTRA_DIST = $(libman_PRE) $(libman_xml)
CLEANFILES = $(libman_DATA)
MAINTAINERCLEANFILES = $(libman_xml:xml=man)
2007-09-30 00:12:46 -06:00
SUFFIXES = .$(LIB_MAN_SUFFIX) .man .xml
# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
.man.$(LIB_MAN_SUFFIX):
$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
2007-09-30 00:12:46 -06:00
# Generate nroff sources from DocBook/xml
dist-hook: $(libman_PRE)
if HAVE_XMLTO
.xml.man:
2009-10-31 11:45:46 -06:00
$(AM_V_GEN)$(XMLTO) man $< && mv $*.__libmansuffix__ $@
2007-09-30 00:12:46 -06:00
else
.xml.man:
@echo "WARNING: configure did not find xmlto, cannot create $@ without it"
-cp ${srcdir}/$@ .
2007-09-30 00:12:46 -06:00
endif