XCOMM $XConsortium: Imakefile,v 1.6 95/01/23 15:34:15 kaleb Exp $
XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/doc/Imakefile,v 3.13 1995/01/19 05:21:11 dawes Exp $

#include <Server.tmpl>
#if 0
#include <lnxdoc.rules>
#endif

#if HasLinuxDoc || InstallJapaneseDocs
#define IHaveSubdirs
#endif

#if HasLinuxDoc
SGMLDIR = sgml
#endif

#if InstallJapaneseDocs
JAPANESEDIR = Japanese
#endif


SUBDIRS = $(SGMLDIR) $(JAPANESEDIR)

#if !BuildLinuxDocText
/* FreeBSD's README is handled separately because of name length limits */
#ifdef BSD386Architecture
OSREADME = README.Bsdi
#endif
#ifdef NetBSDArchitecture
OSREADME = README.NetBSD
#endif
#ifdef i386MachArchitecture
OSREADME = README.Mach
#endif
#ifdef LinuxArchitecture
OSREADME = README.Linux
#endif
#ifdef MinixArchitecture
OSREADME = /* README.Minix */
#endif
#ifdef AmoebaArchitecture
OSREADME = /* README.Amoeba */
#endif
#ifdef SVR3Architecture
# ifdef i386ScoArchitecture
OSREADME = README.SCO /* README.SVR3 */
# else
#  ifdef i386IscArchitecture
OSREADME = README.isc /* README.SVR3 */
#  else
OSREADME = /* README.SVR3 */
#  endif
# endif
#endif
#ifdef SVR4Architecture
# ifdef SunArchitecture
OSREADME = README.SOLX86
# else
OSREADME = README.SVR4
# endif
#endif
#endif /* !BuildLinuxDocText */

all::

#if !BuildLinuxDocText
HWREADME =  README.ati README.trident README.tseng README.WstDig \ 
            README.cirrus README.Video7 README.P9000 README.agx \
            README.S3 README.W32 README.Oak

MAINDOCS = COPYRIGHT README README.Config INSTALL

OTHERDOCS = VideoModes.doc README.clkprog
#endif

MISCDOCS = ServersOnly

DATABASE = modeDB.txt AccelCards Monitors Devices

FILES = $(MAINDOCS) $(OSREADME) $(HWREADME) $(OTHERDOCS) $(MISCDOCS) $(DATABASE)

InstallMultipleDest(install,$(FILES),$(XFREE86DOCDIR))

#if defined(FreeBSDArchitecture) && !BuildLinuxDocText
InstallNamedNonExec(READ.FreeBSD,README.FreeBSD,$(XFREE86DOCDIR))
#endif

#ifdef IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

