186bbecbeSmrg#
286bbecbeSmrg# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
386bbecbeSmrg#
486bbecbeSmrg# Permission is hereby granted, free of charge, to any person obtaining a
586bbecbeSmrg# copy of this software and associated documentation files (the "Software"),
686bbecbeSmrg# to deal in the Software without restriction, including without limitation
786bbecbeSmrg# the rights to use, copy, modify, merge, publish, distribute, sublicense,
886bbecbeSmrg# and/or sell copies of the Software, and to permit persons to whom the
986bbecbeSmrg# Software is furnished to do so, subject to the following conditions:
1086bbecbeSmrg#
1186bbecbeSmrg# The above copyright notice and this permission notice (including the next
1286bbecbeSmrg# paragraph) shall be included in all copies or substantial portions of the
1386bbecbeSmrg# Software.
1486bbecbeSmrg#
1586bbecbeSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1686bbecbeSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1786bbecbeSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1886bbecbeSmrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1986bbecbeSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2086bbecbeSmrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2186bbecbeSmrg# DEALINGS IN THE SOFTWARE.
2286bbecbeSmrg#
2386bbecbeSmrg
2486bbecbeSmrgappmandir = $(APP_MAN_DIR)
2586bbecbeSmrgappman_PRE = rgb.man showrgb.man
2686bbecbeSmrgappman_DATA = showrgb.$(APP_MAN_SUFFIX)
2786bbecbeSmrgif RGB_DB
2886bbecbeSmrgappman_DATA += rgb.$(APP_MAN_SUFFIX)
2986bbecbeSmrgendif
3086bbecbeSmrg
3186bbecbeSmrgEXTRA_DIST = $(appman_PRE)
3286bbecbeSmrgCLEANFILES = $(appman_DATA)
3386bbecbeSmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
3486bbecbeSmrgMAN_SUBSTS += 	-e 's|__RGB_DB__|$(db_dir)/$(db_file)|g' \
3586bbecbeSmrg		-e 's|__RGB_DB_DIR__|$(db_dir)|g' \
3686bbecbeSmrg		-e 's|__RGB_DB_TYPE__|$(RGB_DB_TYPE)|g' \
3786bbecbeSmrg		-e 's|__RGB_DB_FILES__|$(RGB_DB_FILES)|g'
3886bbecbeSmrg
3986bbecbeSmrg# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
4086bbecbeSmrg.man.$(APP_MAN_SUFFIX):
4186bbecbeSmrg	$(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
42