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