Makefile.am revision 8b22bf3f
18b22bf3fSmrg# 
28b22bf3fSmrg#  Copyright 2005  Red Hat, Inc.
38b22bf3fSmrg# 
48b22bf3fSmrg#  Permission to use, copy, modify, distribute, and sell this software and its
58b22bf3fSmrg#  documentation for any purpose is hereby granted without fee, provided that
68b22bf3fSmrg#  the above copyright notice appear in all copies and that both that
78b22bf3fSmrg#  copyright notice and this permission notice appear in supporting
88b22bf3fSmrg#  documentation, and that the name of Red Hat not be used in
98b22bf3fSmrg#  advertising or publicity pertaining to distribution of the software without
108b22bf3fSmrg#  specific, written prior permission.  Red Hat makes no
118b22bf3fSmrg#  representations about the suitability of this software for any purpose.  It
128b22bf3fSmrg#  is provided "as is" without express or implied warranty.
138b22bf3fSmrg# 
148b22bf3fSmrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
158b22bf3fSmrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
168b22bf3fSmrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
178b22bf3fSmrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
188b22bf3fSmrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
198b22bf3fSmrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
208b22bf3fSmrg#  PERFORMANCE OF THIS SOFTWARE.
218b22bf3fSmrg
228b22bf3fSmrgbin_PROGRAMS = xrdb
238b22bf3fSmrg
248b22bf3fSmrgAM_CFLAGS = $(XRDB_CFLAGS)
258b22bf3fSmrgxrdb_LDADD = $(XRDB_LIBS)
268b22bf3fSmrg
278b22bf3fSmrgxrdb_SOURCES =	\
288b22bf3fSmrg        xrdb.c
298b22bf3fSmrg
308b22bf3fSmrgappman_PRE = \
318b22bf3fSmrg        xrdb.man
328b22bf3fSmrg
338b22bf3fSmrgappmandir = $(APP_MAN_DIR)
348b22bf3fSmrg
358b22bf3fSmrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
368b22bf3fSmrg
378b22bf3fSmrgEXTRA_DIST = $(appman_PRE) ChangeLog autogen.sh
388b22bf3fSmrgCLEANFILES = $(appman_DATA)
398b22bf3fSmrgMAINTAINERCLEANFILES=ChangeLog
408b22bf3fSmrg
418b22bf3fSmrgChangeLog:
428b22bf3fSmrg	(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
438b22bf3fSmrg
448b22bf3fSmrgdist-hook: ChangeLog
458b22bf3fSmrg
468b22bf3fSmrgSED = sed
478b22bf3fSmrg
488b22bf3fSmrg# Strings to replace in man pages
498b22bf3fSmrgXORGRELSTRING = @PACKAGE_STRING@
508b22bf3fSmrg  XORGMANNAME = X Version 11
518b22bf3fSmrg
528b22bf3fSmrgMAN_SUBSTS = \
538b22bf3fSmrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
548b22bf3fSmrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
558b22bf3fSmrg	-e 's|__xservername__|Xorg|g' \
568b22bf3fSmrg	-e 's|__xconfigfile__|xorg.conf|g' \
578b22bf3fSmrg	-e 's|__projectroot__|$(prefix)|g' \
588b22bf3fSmrg	-e 's|__apploaddir__|$(appdefaultdir)|' \
598b22bf3fSmrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
608b22bf3fSmrg	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
618b22bf3fSmrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
628b22bf3fSmrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
638b22bf3fSmrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
648b22bf3fSmrg
658b22bf3fSmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
668b22bf3fSmrg
678b22bf3fSmrg.man.$(APP_MAN_SUFFIX):
688b22bf3fSmrg	sed $(MAN_SUBSTS) < $< > $@
69