~ubuntu-branches/ubuntu/trusty/libxi/trusty-security

« back to all changes in this revision

Viewing changes to man/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-01-18 11:44:39 UTC
  • mfrom: (1.1.8) (4.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20120118114439-bm7qksg514zh51do
Tags: 2:1.5.99.2-0ubuntu3
Bump build depends on x11proto-input-dev to 2.1.99.5.  Our 2.1.99.4 package
is really 2.0.2, so 2.1.99.5 is the first version with MT support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
# Unable to use __libmansuffix__ as underscores are lost in txt --> xml conversion
156
156
MAN_SUBSTS += -e 's/libmansuffix/$(LIB_MAN_SUFFIX)/g'
157
157
 
 
158
# asciidoc is generating [FIXME...] values in the .TH line we should fix.
 
159
MAN_SUBSTS += -e 's/\[FIXME: source\]/$(XORG_MAN_PAGE)/'
 
160
MAN_SUBSTS += -e 's/\[FIXME: manual\]/XINPUT FUNCTIONS/'
 
161
 
 
162
# asciidoc generates shadow page references without the man section directory
 
163
MAN_SUBSTS += -e 's/^\.so X/.so man$(LIB_MAN_SUFFIX)\/X/'
 
164
 
158
165
SUFFIXES = .man .$(LIB_MAN_SUFFIX)
159
166
.man.$(LIB_MAN_SUFFIX):
160
167
        $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
166
173
        $(AM_V_GEN)$(ASCIIDOC) -b docbook -d manpage -o $@ $<
167
174
.xml.man:
168
175
        $(AM_V_GEN)$(XMLTO) man $<
169
 
        $(AM_V_GEN)mv -f $(@:.man=.libmansuffix) $@
 
176
        $(AM_V_at)mv -f $(@:.man=.libmansuffix) $@
170
177
 
171
178
# Invoke asciidoc/xmlto main man page generation for shadow pages
172
179
$(libman_shadows):
173
180
        @if test ! -f $(@:.man=.libmansuffix); then \
174
 
          $(AM_V_GEN)rm -f $<; \
175
 
          $(AM_V_GEN)$(MAKE) $(AM_MAKEFLAGS) $< || exit 1; \
 
181
          rm -f $<; \
 
182
          $(MAKE) $(AM_MAKEFLAGS) $< || exit 1; \
176
183
        fi
177
 
        $(AM_V_GEN)mv -f $(@:.man=.libmansuffix) $@
 
184
        $(AM_V_at)mv -f $(@:.man=.libmansuffix) $@
178
185
endif