Makefile.am revision 1abf7346
174966952Smrg# 274966952Smrg# Copyright 2005 Red Hat, Inc. 374966952Smrg# 474966952Smrg# Permission to use, copy, modify, distribute, and sell this software and its 574966952Smrg# documentation for any purpose is hereby granted without fee, provided that 674966952Smrg# the above copyright notice appear in all copies and that both that 774966952Smrg# copyright notice and this permission notice appear in supporting 816f0be2fSmaya# documentation, and that the name of Red Hat not be used in 99ab84437Smrg# advertising or publicity pertaining to distribution of the software without 109ab84437Smrg# specific, written prior permission. Red Hat makes no 119ab84437Smrg# representations about the suitability of this software for any purpose. It 129ab84437Smrg# is provided "as is" without express or implied warranty. 139ab84437Smrg# 149ab84437Smrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 159ab84437Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 169ab84437Smrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 179ab84437Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1874966952Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1974966952Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2074966952Smrg# PERFORMANCE OF THIS SOFTWARE. 2174966952Smrg 2274966952Smrgbin_PROGRAMS = xman 2374966952Smrg 2474966952Smrghelpdir=@HELPDIR@ 2574966952Smrgdist_help_DATA = xman.help 2674966952Smrg 2774966952Smrgxman_CFLAGS = $(XMAN_CFLAGS) -D_BSD_SOURCE -DHELPFILE=\"$(helpdir)/xman.help\" 2874966952Smrgxman_LDADD = $(XMAN_LIBS) 2974966952Smrg 3074966952Smrgxman_SOURCES = \ 3174966952Smrg buttons.c \ 3274966952Smrg defs.h \ 33 globals.c \ 34 globals.h \ 35 handler.c \ 36 help.c \ 37 iconclosed.h \ 38 icon_help.h \ 39 icon_open.h \ 40 main.c \ 41 man.c \ 42 man.h \ 43 misc.c \ 44 ScrollByL.c \ 45 ScrollByL.h \ 46 ScrollByLP.h \ 47 search.c \ 48 tkfuncs.c \ 49 vendor.c \ 50 vendor.h \ 51 version.h 52 53if XAW_USE_XPRINT 54xman_SOURCES += \ 55 print.c \ 56 print.h 57endif 58 59appman_PRE = \ 60 xman.man 61 62# App default files (*.ad) 63 64appdefaultdir = @appdefaultdir@ 65 66if XAW_USE_XPRINT 67Xman: Xman-xprint.ad 68 ln -s $(top_srcdir)/Xman-xprint.ad Xman 69else 70Xman: Xman-noxprint.ad 71 ln -s $(top_srcdir)/Xman-noxprint.ad Xman 72endif 73 74appdefault_DATA = Xman 75 76EXTRA_DIST = Xman-xprint.ad Xman-noxprint.ad 77 78CLEANFILES = Xman 79 80appmandir = $(APP_MAN_DIR) 81 82appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 83 84EXTRA_DIST += $(appman_PRE) 85CLEANFILES += $(appman_DATA) 86 87SED = sed 88 89# Strings to replace in man pages 90XORGRELSTRING = @PACKAGE_STRING@ 91 XORGMANNAME = X Version 11 92 93MAN_SUBSTS = \ 94 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 95 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 96 -e 's|__xservername__|Xorg|g' \ 97 -e 's|__xconfigfile__|xorg.conf|g' \ 98 -e 's|__projectroot__|$(prefix)|g' \ 99 -e 's|__apploaddir__|$(appdefaultdir)|' \ 100 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 101 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 102 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 103 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 104 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 105 106SUFFIXES = .$(APP_MAN_SUFFIX) .man 107 108.man.$(APP_MAN_SUFFIX): 109 sed $(MAN_SUBSTS) < $< > $@ 110