Makefile.am revision 44d7874b
1# $Id: Makefile.am,v 1.1.1.1 2008/07/29 05:22:03 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 = beforelight 24 25beforelight_CFLAGS = $(BEFORELIGHT_CFLAGS) 26beforelight_LDADD = $(BEFORELIGHT_LIBS) 27 28beforelight_SOURCES = \ 29 b4light.c 30 31appman_PRE = \ 32 beforelight.man 33 34# App default files (*.ad) 35 36EXTRA_DIST = \ 37 Beforelight.ad 38 39APPDEFAULTFILES = \ 40 Beforelight 41 42SUFFIXES = .ad 43 44.ad: 45 cp $< $@ 46 47appdefault_DATA = $(APPDEFAULTFILES) 48 49CLEANFILES = $(APPDEFAULTFILES) 50 51appmandir = $(APP_MAN_DIR) 52 53appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 54 55EXTRA_DIST += $(appman_PRE) 56CLEANFILES += $(appman_DATA) 57 58SED = sed 59 60# Strings to replace in man pages 61XORGRELSTRING = @PACKAGE_STRING@ 62 XORGMANNAME = X Version 11 63 64MAN_SUBSTS = \ 65 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 66 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 67 -e 's|__xservername__|Xorg|g' \ 68 -e 's|__xconfigfile__|xorg.conf|g' \ 69 -e 's|__projectroot__|$(prefix)|g' \ 70 -e 's|__apploaddir__|$(appdefaultdir)|' \ 71 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 72 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 73 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 74 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 75 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 76 77SUFFIXES += .$(APP_MAN_SUFFIX) .man 78 79.man.$(APP_MAN_SUFFIX): 80 sed $(MAN_SUBSTS) < $< > $@ 81