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