Makefile.am revision 5c10afb9
15c10afb9Smrg# 25c10afb9Smrg# Copyright 2005 Red Hat, Inc. 35c10afb9Smrg# 45c10afb9Smrg# Permission to use, copy, modify, distribute, and sell this software and its 55c10afb9Smrg# documentation for any purpose is hereby granted without fee, provided that 65c10afb9Smrg# the above copyright notice appear in all copies and that both that 75c10afb9Smrg# copyright notice and this permission notice appear in supporting 85c10afb9Smrg# documentation, and that the name of Red Hat not be used in 95c10afb9Smrg# advertising or publicity pertaining to distribution of the software without 105c10afb9Smrg# specific, written prior permission. Red Hat makes no 115c10afb9Smrg# representations about the suitability of this software for any purpose. It 125c10afb9Smrg# is provided "as is" without express or implied warranty. 135c10afb9Smrg# 145c10afb9Smrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 155c10afb9Smrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 165c10afb9Smrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 175c10afb9Smrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 185c10afb9Smrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 195c10afb9Smrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 205c10afb9Smrg# PERFORMANCE OF THIS SOFTWARE. 215c10afb9Smrg 225c10afb9Smrgbin_PROGRAMS = proxymngr 235c10afb9Smrg 245c10afb9SmrgCONFIG_DIR = $(libdir)/X11/proxymngr 255c10afb9Smrg 265c10afb9Smrgproxymngr_CFLAGS = \ 275c10afb9Smrg $(PROXYMNGR_CFLAGS) \ 285c10afb9Smrg -DXVENDORNAME=\"The\ X\.Org\ Foundation\" \ 295c10afb9Smrg -DXORG_RELEASE=\"Release\ $(VERSION)\" \ 305c10afb9Smrg -DCONFIG_FILE=\"$(CONFIG_DIR)/proxymngr/pmconfig\" 315c10afb9Smrg 325c10afb9Smrgproxymngr_LDADD = $(PROXYMNGR_LIBS) 335c10afb9Smrg 345c10afb9Smrgproxymngr_SOURCES = \ 355c10afb9Smrg config.c \ 365c10afb9Smrg config.h \ 375c10afb9Smrg main.c \ 385c10afb9Smrg pmdb.c \ 395c10afb9Smrg pmdb.h \ 405c10afb9Smrg pmint.h 415c10afb9Smrg 425c10afb9Smrgappman_PRE = \ 435c10afb9Smrg proxymngr.man 445c10afb9Smrg 455c10afb9Smrgconfigdir = $(CONFIG_DIR) 465c10afb9Smrgconfig_DATA = pmconfig 475c10afb9Smrg 485c10afb9Smrgpmconfig: pmconfig.cpp 495c10afb9Smrg $(SED) -e s/LBXPROXY/`echo @LBXPROXY@ | sed -e s/\\\\//\\\\\\\\\\\\//g`/ < $(srcdir)/pmconfig.cpp > $@ 505c10afb9Smrg 515c10afb9SmrgEXTRA_DIST = pmconfig.cpp 525c10afb9SmrgCLEANFILES = pmconfig 535c10afb9Smrg 545c10afb9Smrgappmandir = $(APP_MAN_DIR) 555c10afb9Smrg 565c10afb9Smrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@) 575c10afb9Smrg 585c10afb9SmrgEXTRA_DIST += $(appman_PRE) 595c10afb9SmrgCLEANFILES += $(appman_DATA) 605c10afb9Smrg 615c10afb9SmrgSED = sed 625c10afb9Smrg 635c10afb9Smrg# Strings to replace in man pages 645c10afb9SmrgXORGRELSTRING = @PACKAGE_STRING@ 655c10afb9Smrg XORGMANNAME = X Version 11 665c10afb9Smrg 675c10afb9SmrgMAN_SUBSTS = \ 685c10afb9Smrg -e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 695c10afb9Smrg -e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \ 705c10afb9Smrg -e 's|__xservername__|Xorg|g' \ 715c10afb9Smrg -e 's|__xconfigfile__|xorg.conf|g' \ 725c10afb9Smrg -e 's|__projectroot__|$(prefix)|g' \ 735c10afb9Smrg -e 's|__apploaddir__|$(appdefaultdir)|' \ 745c10afb9Smrg -e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \ 755c10afb9Smrg -e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \ 765c10afb9Smrg -e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \ 775c10afb9Smrg -e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \ 785c10afb9Smrg -e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g' 795c10afb9Smrg 805c10afb9SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man 815c10afb9Smrg 825c10afb9Smrg.man.$(APP_MAN_SUFFIX): 835c10afb9Smrg sed $(MAN_SUBSTS) < $< > $@ 84