Makefile.am revision 3da7aff1
1# $Id: Makefile.am,v 1.1.1.1 2008/07/30 04:27:00 mrg Exp $ 2# 3# Copyright 2005 Red Hat, Inc. 4# 5# Permission to use, copy, modify, distribute, and sell this software and its 6# documentation for any purpose is hereby granted without fee, provided that 7# the above copyright notice appear in all copies and that both that 8# copyright notice and this permission notice appear in supporting 9# documentation, and that the name of Red Hat not be used in 10# advertising or publicity pertaining to distribution of the software without 11# specific, written prior permission. Red Hat makes no 12# representations about the suitability of this software for any purpose. It 13# is provided "as is" without express or implied warranty. 14# 15# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 17# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 19# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 20# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 21# PERFORMANCE OF THIS SOFTWARE. 22 23bin_PROGRAMS = xlogo 24 25xlogo_CFLAGS = $(XLOGO_CFLAGS) 26xlogo_LDADD = $(XLOGO_LIBS) 27 28xlogo_SOURCES = \ 29 Logo.c \ 30 Logo.h \ 31 LogoP.h \ 32 RenderLogo.c \ 33 RenderLogo.h \ 34 xlogo.c \ 35 xlogo.h 36 37if XAW_USE_XPRINT 38xlogo_SOURCES += \ 39 print.c \ 40 print.h 41endif 42 43appman_PRE = \ 44 xlogo.man 45 46# App default files (*.ad) 47 48appdefaultdir = @appdefaultdir@ 49 50 51APPDEFAULTFILES = \ 52 XLogo \ 53 XLogo-color 54 55 56SUFFIXES = .ad 57 58.ad: 59 cp $< $@ 60 61appdefault_DATA = $(APPDEFAULTFILES) 62 63EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) 64 65CLEANFILES = $(APPDEFAULTFILES) 66 67 68appmandir = $(APP_MAN_DIR) 69 70appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 71 72EXTRA_DIST += $(appman_PRE) 73CLEANFILES += $(appman_DATA) 74 75SED = sed 76 77# Strings to replace in man pages 78XORGRELSTRING = @PACKAGE_STRING@ 79 XORGMANNAME = X Version 11 80 81MAN_SUBSTS = \ 82 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 83 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 84 -e 's|__xservername__|Xorg|g' \ 85 -e 's|__xconfigfile__|xorg.conf|g' \ 86 -e 's|__projectroot__|$(prefix)|g' \ 87 -e 's|__apploaddir__|$(appdefaultdir)|' \ 88 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 89 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 90 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 91 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 92 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 93 94SUFFIXES += .$(APP_MAN_SUFFIX) .man 95 96.man.$(APP_MAN_SUFFIX): 97 sed $(MAN_SUBSTS) < $< > $@ 98