Makefile.am revision 6ea72052
1# $Id: Makefile.am,v 1.1.1.1 2008/07/30 04:08:31 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 = oclock 24 25oclock_CFLAGS = $(OCLOCK_CFLAGS) 26oclock_LDADD = $(OCLOCK_LIBS) -lm 27 28oclock_SOURCES = \ 29 Clock.c \ 30 Clock.h \ 31 ClockP.h \ 32 oclock.c \ 33 transform.c \ 34 transform.h 35 36appman_PRE = \ 37 oclock.man 38 39# App default files (*.ad) 40 41appdefaultdir = @appdefaultdir@ 42 43 44APPDEFAULTFILES = \ 45 Clock-color 46 47SUFFIXES = .ad 48 49.ad: 50 cp $< $@ 51 52appdefault_DATA = $(APPDEFAULTFILES) 53 54EXTRA_DIST = $(APPDEFAULTFILES:%=%.ad) oclock.bit oclmask.bit 55 56CLEANFILES = $(APPDEFAULTFILES) 57 58 59appmandir = $(APP_MAN_DIR) 60 61appman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 62 63EXTRA_DIST += $(appman_PRE) 64CLEANFILES += $(appman_DATA) 65 66SED = sed 67 68# Strings to replace in man pages 69XORGRELSTRING = @PACKAGE_STRING@ 70 XORGMANNAME = X Version 11 71 72MAN_SUBSTS = \ 73 -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 74 -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 75 -e 's|__xservername__|Xorg|g' \ 76 -e 's|__xconfigfile__|xorg.conf|g' \ 77 -e 's|__projectroot__|$(prefix)|g' \ 78 -e 's|__apploaddir__|$(appdefaultdir)|' \ 79 -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 80 -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 81 -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 82 -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 83 -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 84 85SUFFIXES += .$(APP_MAN_SUFFIX) .man 86 87.man.$(APP_MAN_SUFFIX): 88 sed $(MAN_SUBSTS) < $< > $@ 89