Makefile.am revision 492e1cfe
1# 
2#  Copyright 2005  Red Hat, Inc.
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, and that the name of Red Hat not be used in
9#  advertising or publicity pertaining to distribution of the software without
10#  specific, written prior permission.  Red Hat makes no
11#  representations about the suitability of this software for any purpose.  It
12#  is provided "as is" without express or implied warranty.
13# 
14#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20#  PERFORMANCE OF THIS SOFTWARE.
21
22bin_PROGRAMS = xfd
23
24xfd_CFLAGS = $(XFD_CFLAGS) -DXRENDER -D_BSD_SOURCE
25xfd_LDADD = $(XFD_LIBS)
26
27xfd_SOURCES =	\
28        grid.c \
29        grid.h \
30        gridP.h \
31        xfd.c
32
33appman_PRE = \
34        xfd.man
35
36# App default files  (*.ad)
37
38appdefaultdir = @appdefaultdir@
39
40APPDEFAULTFILES = \
41        Xfd
42
43SUFFIXES = .ad
44
45.ad:
46	cp $< $@
47
48appdefault_DATA = $(APPDEFAULTFILES)
49
50EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad)
51
52CLEANFILES = $(APPDEFAULTFILES)
53
54
55appmandir = $(APP_MAN_DIR)
56
57appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
58
59EXTRA_DIST += $(appman_PRE)
60CLEANFILES += $(appman_DATA)
61
62SED = sed
63
64# Strings to replace in man pages
65XORGRELSTRING = @PACKAGE_STRING@
66  XORGMANNAME = X Version 11
67
68MAN_SUBSTS = \
69	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
70	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
71	-e 's|__xservername__|Xorg|g' \
72	-e 's|__xconfigfile__|xorg.conf|g' \
73	-e 's|__projectroot__|$(prefix)|g' \
74	-e 's|__apploaddir__|$(appdefaultdir)|' \
75	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
76	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
77	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
78	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
79	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
80
81SUFFIXES += .$(APP_MAN_SUFFIX) .man
82
83.man.$(APP_MAN_SUFFIX):
84	sed $(MAN_SUBSTS) < $< > $@
85