Makefile.am revision cbeba4ae
1cbeba4aeSmrg# 
2cbeba4aeSmrg#  Copyright 2005  Red Hat, Inc.
3cbeba4aeSmrg# 
4cbeba4aeSmrg#  Permission to use, copy, modify, distribute, and sell this software and its
5cbeba4aeSmrg#  documentation for any purpose is hereby granted without fee, provided that
6cbeba4aeSmrg#  the above copyright notice appear in all copies and that both that
7cbeba4aeSmrg#  copyright notice and this permission notice appear in supporting
8cbeba4aeSmrg#  documentation, and that the name of Red Hat not be used in
9cbeba4aeSmrg#  advertising or publicity pertaining to distribution of the software without
10cbeba4aeSmrg#  specific, written prior permission.  Red Hat makes no
11cbeba4aeSmrg#  representations about the suitability of this software for any purpose.  It
12cbeba4aeSmrg#  is provided "as is" without express or implied warranty.
13cbeba4aeSmrg# 
14cbeba4aeSmrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15cbeba4aeSmrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16cbeba4aeSmrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17cbeba4aeSmrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18cbeba4aeSmrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19cbeba4aeSmrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20cbeba4aeSmrg#  PERFORMANCE OF THIS SOFTWARE.
21cbeba4aeSmrg
22cbeba4aeSmrgbin_PROGRAMS = listres
23cbeba4aeSmrg
24cbeba4aeSmrglistres_CFLAGS = $(LISTRES_CFLAGS) -D_BSD_SOURCE
25cbeba4aeSmrglistres_LDADD = $(LISTRES_LIBS)
26cbeba4aeSmrg
27cbeba4aeSmrglistres_SOURCES =	\
28cbeba4aeSmrg        listres.c
29cbeba4aeSmrg
30cbeba4aeSmrgappman_PRE = \
31cbeba4aeSmrg        listres.man
32cbeba4aeSmrg
33cbeba4aeSmrg
34cbeba4aeSmrgappmandir = $(APP_MAN_DIR)
35cbeba4aeSmrg
36cbeba4aeSmrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
37cbeba4aeSmrg
38cbeba4aeSmrgEXTRA_DIST = $(appman_PRE)
39cbeba4aeSmrgCLEANFILES = $(appman_DATA)
40cbeba4aeSmrg
41cbeba4aeSmrgSED = sed
42cbeba4aeSmrg
43cbeba4aeSmrg# Strings to replace in man pages
44cbeba4aeSmrgXORGRELSTRING = @PACKAGE_STRING@
45cbeba4aeSmrg  XORGMANNAME = X Version 11
46cbeba4aeSmrg
47cbeba4aeSmrgMAN_SUBSTS = \
48cbeba4aeSmrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
49cbeba4aeSmrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
50cbeba4aeSmrg	-e 's|__xservername__|Xorg|g' \
51cbeba4aeSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
52cbeba4aeSmrg	-e 's|__projectroot__|$(prefix)|g' \
53cbeba4aeSmrg	-e 's|__apploaddir__|$(appdefaultdir)|' \
54cbeba4aeSmrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
55cbeba4aeSmrg	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
56cbeba4aeSmrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
57cbeba4aeSmrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
58cbeba4aeSmrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
59cbeba4aeSmrg
60cbeba4aeSmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
61cbeba4aeSmrg
62cbeba4aeSmrg.man.$(APP_MAN_SUFFIX):
63cbeba4aeSmrg	sed $(MAN_SUBSTS) < $< > $@
64