191a17321Smrg# 
291a17321Smrg#  Copyright 2005  Red Hat, Inc.
391a17321Smrg# 
491a17321Smrg#  Permission to use, copy, modify, distribute, and sell this software and its
591a17321Smrg#  documentation for any purpose is hereby granted without fee, provided that
691a17321Smrg#  the above copyright notice appear in all copies and that both that
791a17321Smrg#  copyright notice and this permission notice appear in supporting
891a17321Smrg#  documentation, and that the name of Red Hat not be used in
991a17321Smrg#  advertising or publicity pertaining to distribution of the software without
1091a17321Smrg#  specific, written prior permission.  Red Hat makes no
1191a17321Smrg#  representations about the suitability of this software for any purpose.  It
1291a17321Smrg#  is provided "as is" without express or implied warranty.
1391a17321Smrg# 
1491a17321Smrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1591a17321Smrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1691a17321Smrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1791a17321Smrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1891a17321Smrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1991a17321Smrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2091a17321Smrg#  PERFORMANCE OF THIS SOFTWARE.
2191a17321Smrg
2291a17321Smrgbin_PROGRAMS = xsetpointer
2391a17321Smrg
2491a17321Smrgxsetpointer_CFLAGS = $(XSETPOINTER_CFLAGS)
2591a17321Smrgxsetpointer_LDADD = $(XSETPOINTER_LIBS)
2691a17321Smrg
2791a17321Smrgxsetpointer_SOURCES =	\
2891a17321Smrg        xsetpointer.c
2991a17321Smrg
3091a17321Smrgappman_PRE = \
3191a17321Smrg        xsetpointer.man
3291a17321Smrg
3391a17321Smrgappmandir = $(APP_MAN_DIR)
3491a17321Smrg
3591a17321Smrgappman_DATA = $(appman_PRE:man=@APP_MAN_SUFFIX@)
3691a17321Smrg
3791a17321SmrgEXTRA_DIST = $(appman_PRE) ChangeLog
3891a17321SmrgCLEANFILES = $(appman_DATA) ChangeLog
3991a17321Smrg
4091a17321Smrg.PHONY: ChangeLog
4191a17321Smrg
4291a17321SmrgChangeLog:
4391a17321Smrg	GIT_DIR=$(srcdir)/.git git-log > ChangeLog
4491a17321Smrg
4591a17321Smrgdist-hook: ChangeLog
4691a17321Smrg
4791a17321SmrgSED = sed
4891a17321Smrg
4991a17321Smrg# Strings to replace in man pages
5091a17321SmrgXORGRELSTRING = @PACKAGE_STRING@
5191a17321Smrg  XORGMANNAME = X Version 11
5291a17321Smrg
5391a17321SmrgMAN_SUBSTS = \
5491a17321Smrg	-e 's|__vendorversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
5591a17321Smrg	-e 's|__xorgversion__|"$(XORGRELSTRING)" "$(XORGMANNAME)"|' \
5691a17321Smrg	-e 's|__xservername__|Xorg|g' \
5791a17321Smrg	-e 's|__xconfigfile__|xorg.conf|g' \
5891a17321Smrg	-e 's|__projectroot__|$(prefix)|g' \
5991a17321Smrg	-e 's|__apploaddir__|$(appdefaultdir)|' \
6091a17321Smrg	-e 's|__appmansuffix__|$(APP_MAN_SUFFIX)|g' \
6191a17321Smrg	-e 's|__libmansuffix__|$(LIB_MAN_SUFFIX)|g' \
6291a17321Smrg	-e 's|__adminmansuffix__|$(ADMIN_MAN_SUFFIX)|g' \
6391a17321Smrg	-e 's|__miscmansuffix__|$(MISC_MAN_SUFFIX)|g' \
6491a17321Smrg	-e 's|__filemansuffix__|$(FILE_MAN_SUFFIX)|g'
6591a17321Smrg
6691a17321SmrgSUFFIXES = .$(APP_MAN_SUFFIX) .man
6791a17321Smrg
6891a17321Smrg.man.$(APP_MAN_SUFFIX):
6991a17321Smrg	sed $(MAN_SUBSTS) < $< > $@
70