XCOMM $XFree86: xc/doc/man/misc/Imakefile,v 1.10 2006/04/23 17:02:43 dawes Exp $

/*
 * Copyright (c) 1994-2006 by The XFree86 Project, Inc.
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject
 * to the following conditions:
 *
 *   1.  Redistributions of source code must retain the above copyright
 *       notice, this list of conditions, and the following disclaimer.
 *
 *   2.  Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer
 *       in the documentation and/or other materials provided with the
 *       distribution, and in the same place and form as other copyright,
 *       license and disclaimer information.
 *
 *   3.  The end-user documentation included with the redistribution,
 *       if any, must include the following acknowledgment: "This product
 *       includes software developed by The XFree86 Project, Inc
 *       (http://www.xfree86.org/) and its contributors", in the same
 *       place and form as other third-party acknowledgments.  Alternately,
 *       this acknowledgment may appear in the software itself, in the
 *       same form and location as other such third-party acknowledgments.
 *
 *   4.  Except as contained in this notice, the name of The XFree86
 *       Project, Inc shall not be used in advertising or otherwise to
 *       promote the sale, use or other dealings in this Software without
 *       prior written authorization from The XFree86 Project, Inc.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE XFREE86 PROJECT, INC OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

/*
 * This Imakefile is intended to make it possible to install man pages
 * for architectures other than the one the build is done on.  So far,
 * it is only set up for builds on XFree86/ix86 platforms, which means that
 * it only includes those man pages not normally installed there:
 *
 * XFree86 Linux/mips:	newport
 * XFree86 Linux/sparc:	sunbw2, suncg14, suncg3, suncg6, sunffb, sunleo,
 *			suntcx
 * XFree86 Linux/ix86:	v4l, glide
 * XFree86 Linux:       ur98, eloinput, aiptek
 * XFree86 Darwin:      XDarwin, dumpkeymap
 * XFree86 TinyX:	TinyX, Xvesa, Xfbdev
 */

InstallGenManPage(newport,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(sunbw2,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(suncg14,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(suncg3,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(suncg6,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(sunffb,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(sunleo,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(suntcx,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(v4l,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(glide,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(ur98,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(aiptek,$(DRIVERMANDIR),$(DRIVERMANSUFFIX))
InstallGenManPage(XDarwin,$(MANDIR),$(MANSUFFIX))
InstallGenManPage(dumpkeymap,$(MANDIR),$(MANSUFFIX))
#if !defined(TinyXServer) || !TinyXServer
InstallGenManPage(TinyX,$(MANDIR),$(MANSUFFIX))
InstallGenManPageAliases(TinyX,$(MANDIR),$(MANSUFFIX),Xchips Xi810 Xigs Xipaq Xmach64 Xsavage Xsis530 Xtrident Xtrio Xts300 Xkdrive kdrive)
#endif
#if !defined(XvesaServer) || !XvesaServer
InstallGenManPage(Xvesa,$(MANDIR),$(MANSUFFIX))
#endif
#if !defined(XfbdevServer) || !XfbdevServer
InstallGenManPage(Xfbdev,$(MANDIR),$(MANSUFFIX))
#endif
#if (!defined(XsunServer) || !XsunServer) && \
    (!defined(Xsun24Server) || !Xsun24Server) && \
    (!defined(XsunMonoServer) || !XsunMonoServer)
#define DoXsunManPage
#endif
#ifdef DoXsunManPage
InstallGenManPage(Xsun,$(MANDIR),$(MANSUFFIX))
InstallGenManPageAliases(Xsun,$(MANDIR),$(MANSUFFIX),XsunMono Xsun24)
#endif

LinkSourceFile(newport.man,$(XF86DRIVERSRC)/newport)
LinkSourceFile(sunbw2.man,$(XF86DRIVERSRC)/sunbw2)
LinkSourceFile(suncg14.man,$(XF86DRIVERSRC)/suncg14)
LinkSourceFile(suncg3.man,$(XF86DRIVERSRC)/suncg3)
LinkSourceFile(suncg6.man,$(XF86DRIVERSRC)/suncg6)
LinkSourceFile(sunffb.man,$(XF86DRIVERSRC)/sunffb)
LinkSourceFile(sunleo.man,$(XF86DRIVERSRC)/sunleo)
LinkSourceFile(suntcx.man,$(XF86DRIVERSRC)/suntcx)
LinkSourceFile(v4l.man,$(XF86DRIVERSRC)/v4l)
LinkSourceFile(glide.man,$(XF86DRIVERSRC)/glide)
LinkSourceFile(aiptek.man,$(XF86SRC)/input/aiptek)
LinkSourceFile(eloinput.man,$(XF86SRC)/input/eloinput)
LinkSourceFile(ur98.man,$(XF86SRC)/input/ur98)
LinkSourceFile(XDarwin.man,$(SERVERSRC)/hw/darwin)
LinkSourceFile(dumpkeymap.man,$(SERVERSRC)/hw/darwin/utils)
#if !defined(TinyXServer) || !TinyXServer
LinkSourceFile(TinyX.man,$(SERVERSRC)/hw/tinyx)
#endif
#if !defined(XvesaServer) || !XvesaServer
LinkSourceFile(Xvesa.man,$(SERVERSRC)/hw/tinyx/vesa)
#endif
#if !defined(XfbdevServer) || !XfbdevServer
LinkSourceFile(Xfbdev.man,$(SERVERSRC)/hw/tinyx/fbdev)
#endif
#ifdef DoXsunManPage
LinkSourceFile(Xsun.man,$(SERVERSRC)/hw/sun)
#endif

