Makefile.am revision 4fb28925
14fb28925Smrg# 
24fb28925Smrg#  Copyright 2005  Red Hat, Inc.
34fb28925Smrg# 
44fb28925Smrg#  Permission to use, copy, modify, distribute, and sell this software and its
54fb28925Smrg#  documentation for any purpose is hereby granted without fee, provided that
64fb28925Smrg#  the above copyright notice appear in all copies and that both that
74fb28925Smrg#  copyright notice and this permission notice appear in supporting
84fb28925Smrg#  documentation, and that the name of Red Hat not be used in
94fb28925Smrg#  advertising or publicity pertaining to distribution of the software without
104fb28925Smrg#  specific, written prior permission.  Red Hat makes no
114fb28925Smrg#  representations about the suitability of this software for any purpose.  It
124fb28925Smrg#  is provided "as is" without express or implied warranty.
134fb28925Smrg# 
144fb28925Smrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
154fb28925Smrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
164fb28925Smrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
174fb28925Smrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
184fb28925Smrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
194fb28925Smrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
204fb28925Smrg#  PERFORMANCE OF THIS SOFTWARE.
214fb28925Smrg
224fb28925Smrgbin_PROGRAMS = xkill
234fb28925Smrg
244fb28925Smrgxkill_CFLAGS = $(XKILL_CFLAGS)
254fb28925Smrgxkill_LDADD = $(XKILL_LIBS)
264fb28925Smrg
274fb28925Smrgxkill_SOURCES =	\
284fb28925Smrg        xkill.c
294fb28925Smrg
304fb28925Smrgappman_PRE = \
314fb28925Smrg        xkill.man
324fb28925Smrg
334fb28925Smrg
344fb28925Smrgappmandir = $(APP_MAN_DIR)
354fb28925Smrg
364fb28925Smrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
374fb28925Smrg
384fb28925SmrgEXTRA_DIST = $(appman_PRE)
394fb28925SmrgCLEANFILES = $(appman_DATA)
404fb28925Smrg
414fb28925SmrgSED = sed
424fb28925Smrg
434fb28925Smrg# Strings to replace in man pages
444fb28925SmrgXORGRELSTRING = @PACKAGE_STRING@
454fb28925Smrg  XORGMANNAME = X Version 11
464fb28925Smrg
474fb28925SmrgMAN_SUBSTS = \
484fb28925Smrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
494fb28925Smrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
504fb28925Smrg	-e 's|__xservername__|Xorg|g' \
514fb28925Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
524fb28925Smrg	-e 's|__projectroot__|$(prefix)|g' \
534fb28925Smrg	-e 's|__apploaddir__|$(appdefaultdir)|' \
544fb28925Smrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
554fb28925Smrg	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
564fb28925Smrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
574fb28925Smrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
584fb28925Smrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
594fb28925Smrg
604fb28925SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
614fb28925Smrg
624fb28925Smrg.man.$(APP_MAN_SUFFIX):
634fb28925Smrg	sed $(MAN_SUBSTS) < $< > $@
64