XCOMM $XdotOrg: xc/programs/Xserver/hw/xfree86/doc/sgml/Imakefile,v 1.3 2004-09-03 16:18:22 kem Exp $ XCOMM $XConsortium: Imakefile /main/16 1996/10/28 05:13:04 kaleb $ XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/Imakefile,v 3.86 2003/12/19 04:26:12 dawes Exp $ #include #include /* Set this to YES if the RELNOTES file is up to date (and during devel) */ #ifndef BuildRelnotes #define BuildRelnotes YES #endif #if BuildRelnotes RELNOTES=RELNOTES.sgml #endif SGMLDEPENDS = defs.ent MANSGMLDEPENDS = mdefs.ent INDEXLIST = README.sgml $(RELNOTES) LICENSE.sgml Install.sgml \ BUILD.sgml DESIGN.sgml Versions.sgml \ mouse.sgml fonts.sgml dps.sgml \ XKB-Config.sgml XKB-Enhancing.sgml \ Darwin.sgml LynxOS.sgml NetBSD.sgml OpenBSD.sgml \ OS2Notes.sgml SCO.sgml Solaris.sgml \ apm.sgml ati.sgml chips.sgml cyrix.sgml DECtga.sgml \ I128.sgml i740.sgml i810.sgml newport.sgml \ r128.sgml rendition.sgml s3virge.sgml SiS.sgml LinuxDocReadmeTarget(Darwin) LinuxDocReadmeTarget(LynxOS) LinuxDocReadmeTarget(NetBSD) LinuxDocReadmeTarget(OpenBSD) LinuxDocTargetLong(OS2Notes.sgml,OS2.Notes,OS2Notes) LinuxDocReadmeTarget(SCO) LinuxDocReadmeTarget(Solaris) /* Hardware docs */ LinuxDocReadmeTarget(apm) LinuxDocReadmeTarget(ati) LinuxDocReadmeTarget(chips) LinuxDocReadmeTarget(cyrix) LinuxDocReadmeTarget(DECtga) LinuxDocReadmeTarget(I128) LinuxDocReadmeTarget(i740) LinuxDocReadmeTarget(i810) LinuxDocReadmeTarget(newport) LinuxDocReadmeTarget(r128) LinuxDocReadmeTarget(rendition) LinuxDocReadmeTarget(s3virge) LinuxDocReadmeTarget(SiS) /* Main docs */ LinuxDocTarget(BUILD) LinuxDocTarget(DESIGN) LinuxDocTarget(Install) LinuxDocTarget(LICENSE) LinuxDocTarget(README) #if BuildRelnotes LinuxDocTarget(RELNOTES) #endif #if 0 LinuxDocTarget(Status) #endif /* Other docs */ LinuxDocReadmeTarget(fonts) LinuxDocReadmeTarget(mouse) LinuxDocTarget(Versions) LinuxDocReadmeTarget(dps) LinuxDocReadmeTarget(XKB-Config) LinuxDocReadmeTarget(XKB-Enhancing) SGMLMANDEFS=-D__drivermansuffix__='"'`expr $(DRIVERMANSUFFIX) \: '\(.\)'`'"' \ -D__filemansuffix__='"'`expr $(FILEMANSUFFIX) \: '\(.\)'`'"' \ -D__miscmansuffix__='"'`expr $(MISCMANSUFFIX) \: '\(.\)'`'"' #if BuildHtmlManPages HTMLMANDEFS=-DHTML_MANPAGES #endif #if BuildSpecsDocs && defined(HTMLroffCmd) HTMLSPECDEFS=-DHTML_SPECS #endif AllTarget(mdefs.ent) CppRawFileTarget(mdefs.ent,mdefs.cpp,$(SGMLMANDEFS) $(HTMLMANDEFS) $(HTMLSPECDEFS),NullParameter) /* Generate the documentation index */ index.sgml: $(INDEXLIST) index.pre index.post add.sh Imakefile $(SGMLDEPENDS) $(MANSGMLDEPENDS) RemoveFile(index.sgml) cat index.pre > index.sgml echo "" >> index.sgml for i in $(INDEXLIST); do \ $(SHELL) add.sh $$i; \ done cat index.post >> index.sgml LinuxDocTarget(index) clean:: RemoveFile(index.sgml) FORMATTEDDIR = .. #if BuildRelnotes /* Update RELNOTES at top level */ UpdateFormattedDoc(RELNOTES,$(TOP)) #endif /* Update other docs at top level */ UpdateFormattedDoc(README,$(TOP)) UpdateFormattedDoc(BUILD,$(TOP)) /* Update the README files in xc/programs/xkbcomp */ UpdateFormattedDocLong(README.XKB-Config,$(PROGRAMSRC)/xkbcomp,README.config) UpdateFormattedDocLong(README.XKB-Enhancing,$(PROGRAMSRC)/xkbcomp,README.enhancing)