~ubuntu-branches/ubuntu/oneiric/x11-xserver-utils/oneiric

« back to all changes in this revision

Viewing changes to rgb/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2010-11-12 19:16:48 UTC
  • mfrom: (0.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20101112191648-iok47qxbcgoa99rc
Tags: 7.6~1
* New upstream release candidate: X11R7.6 RC1.
* iceauth 1.0.4
* rgb 1.0.4
* xcmsdb 1.0.3
* xgamma 1.0.4
* xhost 1.0.4
* xmodmap 1.0.5
* xrandr 1.3.4
* xrdb 1.0.7
* xrefresh 1.0.4
* xset 1.2.1
* xsetroot 1.1.0
* Add libxcursor-dev build-dep.
* xstdcmap 1.0.2
* Add an update-copyright target to refresh debian/copyright using
  upstream's COPYING files, thanks to Julien Cristau.
* Refresh debian/copyright accordingly.
* Bump xutils-dev build-dep for new macros.
* Switch from --list-missing to --fail-missing for additional safety.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
2
 
 
1
# Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
 
2
#
3
3
# Permission is hereby granted, free of charge, to any person obtaining a
4
 
# copy of this software and associated documentation files (the
5
 
# "Software"), to deal in the Software without restriction, including
6
 
# without limitation the rights to use, copy, modify, merge, publish,
7
 
# distribute, and/or sell copies of the Software, and to permit persons
8
 
# to whom the Software is furnished to do so, provided that the above
9
 
# copyright notice(s) and this permission notice appear in all copies of
10
 
# the Software and that both the above copyright notice(s) and this
11
 
# permission notice appear in supporting documentation.
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
 
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
17
 
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
18
 
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
19
 
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20
 
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21
 
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
 
23
 
# Except as contained in this notice, the name of a copyright holder
24
 
# shall not be used in advertising or otherwise to promote the sale, use
25
 
# or other dealings in this Software without prior written authorization
26
 
# of the copyright holder.
27
 
28
 
 
29
 
 
 
4
# copy of this software and associated documentation files (the "Software"),
 
5
# to deal in the Software without restriction, including without limitation
 
6
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
 
7
# and/or sell copies of the Software, and to permit persons to whom the
 
8
# Software is furnished to do so, subject to the following conditions:
 
9
#
 
10
# The above copyright notice and this permission notice (including the next
 
11
# paragraph) shall be included in all copies or substantial portions of the
 
12
# Software.
 
13
#
 
14
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
15
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
16
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 
17
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
18
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 
19
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 
20
# DEALINGS IN THE SOFTWARE.
 
21
#
 
22
 
 
23
SUBDIRS=man
30
24
bin_PROGRAMS = showrgb
31
25
 
32
26
showrgb_SOURCES =  showrgb.c
33
27
 
34
 
appman_PRE = showrgb.man
35
 
 
36
28
if RGB_DB
37
29
bin_PROGRAMS += rgb
38
30
 
39
 
rgb_SOURCES = rgb.c 
40
 
 
41
 
appman_PRE += rgb.man
 
31
rgb_SOURCES = rgb.c
42
32
 
43
33
$(RGB_DB_FILES): rgb rgb.txt
44
34
        -rm -f $(RGB_DB_FILES)
48
38
rgbdir = $(db_dir)
49
39
rgb_DATA = $(db_file).txt $(RGB_DB_FILES)
50
40
RGB_DB_DEFINES = -DRGB_DB=\"$(db_dir)/$(db_file)\"
51
 
AM_CFLAGS = $(RGB_CFLAGS) $(RGB_DB_DEFINES)
 
41
AM_CFLAGS = $(RGB_CFLAGS) $(RGB_DB_DEFINES) $(CWARNFLAGS)
52
42
 
53
43
EXTRA_DIST= \
54
44
        rgb.txt \
57
47
        others/raveling.txt \
58
48
        others/thomas.txt
59
49
 
60
 
appmandir = $(APP_MAN_DIR)
61
 
 
62
 
appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
63
 
 
64
 
EXTRA_DIST += $(appman_PRE)
65
 
CLEANFILES = $(appman_DATA) $(RGB_DB_FILES)
66
 
 
67
 
SED = sed
68
 
 
69
 
# Strings to replace in man pages
70
 
XORGRELSTRING = @PACKAGE_STRING@
71
 
  XORGMANNAME = X Version 11
72
 
 
73
 
MAN_SUBSTS = \
74
 
        -e 's|__RGB_DB__|$(db_dir)/$(db_file)|' \
75
 
        -e 's|__RGB_DB_DIR__|$(db_dir)|' \
76
 
        -e 's|__RGB_DB_TYPE__|$(RGB_DB_TYPE)|' \
77
 
        -e 's|__RGB_DB_FILES__|$(RGB_DB_FILES)|' \
78
 
        -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
79
 
        -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
80
 
        -e 's|__xservername__|Xorg|g' \
81
 
        -e 's|__xconfigfile__|xorg.conf|g' \
82
 
        -e 's|__projectroot__|$(prefix)|g' \
83
 
        -e 's|__apploaddir__|$(appdefaultdir)|' \
84
 
        -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
85
 
        -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
86
 
        -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
87
 
        -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
88
 
        -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
89
 
 
90
 
SUFFIXES = .$(APP_MAN_SUFFIX) .man
91
 
 
92
 
.man.$(APP_MAN_SUFFIX):
93
 
        sed $(MAN_SUBSTS) < $< > $@
94
 
 
95
 
EXTRA_DIST += ChangeLog
96
 
MAINTAINERCLEANFILES = ChangeLog
97
 
 
98
 
.PHONY: ChangeLog
 
50
MAINTAINERCLEANFILES = ChangeLog INSTALL
 
51
 
 
52
.PHONY: ChangeLog INSTALL
 
53
 
 
54
INSTALL:
 
55
        $(INSTALL_CMD)
99
56
 
100
57
ChangeLog:
101
 
        (GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
 
58
        $(CHANGELOG_CMD)
102
59
 
103
 
dist-hook: ChangeLog
 
60
dist-hook: ChangeLog INSTALL