~ubuntu-branches/ubuntu/wily/libxinerama/wily

« back to all changes in this revision

Viewing changes to man/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau, Julien Cristau, Andres Salomon
  • Date: 2008-05-18 22:02:34 UTC
  • mfrom: (0.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080518220234-whnvgas3jlrwaazp
Tags: 2:1.0.3-2
[ Julien Cristau ]
* libxinerama1{,-dbg} don't need to depend on x11-common.
* libxinerama-dev doesn't install any header, remove usr/include/X11/ from
  libxinerama-dev.install.

[ Andres Salomon ]
* Test for obj-$(DEB_BUILD_GNU_TYPE) before creating it during build;
  idempotency fix.
* Version x11-common pre-dep in -dev package to 1:7.0.0 to match
  the rest of Debian.
* Bump debhelper compat to 5.
* Fix dh_strip call to skip the -dbg package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 
3
 
4
# Permission to use, copy, modify, distribute, and sell this software and its
 
5
# documentation for any purpose is hereby granted without fee, provided that
 
6
# the above copyright notice appear in all copies and that both that
 
7
# copyright notice and this permission notice appear in supporting
 
8
# documentation.
 
9
 
10
# The above copyright notice and this permission notice shall be included
 
11
# in all copies or substantial portions of the Software.
 
12
 
13
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 
14
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 
15
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 
16
# IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
 
17
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 
18
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 
19
# OTHER DEALINGS IN THE SOFTWARE.
 
20
 
21
# Except as contained in this notice, the name of the copyright holders shall
 
22
# not be used in advertising or otherwise to promote the sale, use or
 
23
# other dealings in this Software without prior written authorization
 
24
# from the copyright holders.
 
25
 
26
 
 
27
libmandir = $(LIB_MAN_DIR)
 
28
 
 
29
LIB_MAN_DIR_SUFFIX = $(LIB_MAN_DIR:@mandir@/man%=%)
 
30
 
 
31
libman_PRE = Xinerama.man
 
32
 
 
33
BUILT_SOURCES = shadows.DONE
 
34
 
 
35
EXTRA_DIST = $(libman_PRE)
 
36
 
 
37
CLEANFILES = $(libman_DATA) $(BUILT_SOURCES)
 
38
 
 
39
libman_DATA = $(libman_PRE:man=@LIB_MAN_SUFFIX@) \
 
40
              $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@)
 
41
 
 
42
SED = sed
 
43
 
 
44
# Strings to replace in man pages
 
45
XORGRELSTRING = @PACKAGE_STRING@
 
46
  XORGMANNAME = X Version 11
 
47
 
 
48
MAN_SUBSTS = \
 
49
        -e 's/__vendorversion__/"$(XORGRELSTRING)" "$(XORGMANNAME)"/' \
 
50
        -e 's/__xservername__/Xorg/g' \
 
51
        -e 's/__xconfigfile__/xorg.conf/g' \
 
52
        -e 's/__appmansuffix__/$(APP_MAN_SUFFIX)/g' \
 
53
        -e 's/__libmansuffix__/$(LIB_MAN_SUFFIX)/g' \
 
54
        -e 's/__filemansuffix__/$(FILE_MAN_SUFFIX)/g'
 
55
 
 
56
SUFFIXES = .$(LIB_MAN_SUFFIX) .man
 
57
 
 
58
.man.$(LIB_MAN_SUFFIX):
 
59
        sed $(MAN_SUBSTS) < $< > $@
 
60
 
 
61
# Generate man page shadow files (Replaces InstallManPageAliases from Imake)
 
62
 
 
63
Xinerama_shadows =              \
 
64
        XineramaQueryExtension  \
 
65
        XineramaQueryVersion    \
 
66
        XineramaIsActive        \
 
67
        XineramaQueryScreens
 
68
 
 
69
shadows.DONE:
 
70
        -rm -f $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@)
 
71
        (for i in $(Xinerama_shadows:=.@LIB_MAN_SUFFIX@) ; do \
 
72
         echo .so man$(LIB_MAN_DIR_SUFFIX)/Xinerama.$(LIB_MAN_SUFFIX) > $$i; \
 
73
         done)