2002-03-27 08:20:32 -08:00
|
|
|
#(***********************************************************************)
|
|
|
|
#(* OCamldoc *)
|
|
|
|
#(* *)
|
|
|
|
#(* Maxence Guesdon, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
#(* *)
|
|
|
|
#(* Copyright 2001 Institut National de Recherche en Informatique et *)
|
|
|
|
#(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
#(* under the terms of the Q Public License version 1.0. *)
|
|
|
|
#(* *)
|
|
|
|
#(***********************************************************************)
|
|
|
|
|
2002-03-29 03:40:00 -08:00
|
|
|
# $Id$
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
include ../config/Makefile
|
|
|
|
|
|
|
|
# Various commands and dir
|
|
|
|
##########################
|
|
|
|
CAMLRUN=../boot/ocamlrun
|
2002-04-27 07:45:33 -07:00
|
|
|
OCAMLC = ../ocamlcomp.sh
|
|
|
|
OCAMLOPT = ../ocamlcompopt.sh
|
2002-03-27 08:20:32 -08:00
|
|
|
OCAMLDEP = $(CAMLRUN) ../tools/ocamldep
|
|
|
|
OCAMLLEX = $(CAMLRUN) ../boot/ocamllex
|
|
|
|
OCAMLYACC= ../boot/ocamlyacc
|
|
|
|
OCAMLLIB = $(LIBDIR)
|
|
|
|
OCAMLBIN = $(BINDIR)
|
|
|
|
EXTRAC_CRC = $(CAMLRUN) ../otherlibs/dynlink/extract_crc
|
|
|
|
|
|
|
|
OCAMLPP=-pp 'grep -v DEBUG'
|
|
|
|
|
|
|
|
# For installation
|
|
|
|
##############
|
|
|
|
MKDIR=mkdir -p
|
2002-04-23 04:35:15 -07:00
|
|
|
CP=cp -f
|
2002-03-27 08:20:32 -08:00
|
|
|
OCAMLDOC=ocamldoc
|
2002-04-26 06:32:47 -07:00
|
|
|
OCAMLDOC_RUN=sh ./runocamldoc $(SUPPORTS_SHARED_LIBRARIES)
|
2002-03-27 08:20:32 -08:00
|
|
|
OCAMLDOC_OPT=$(OCAMLDOC).opt
|
|
|
|
OCAMLDOC_LIBCMA=odoc_info.cma
|
|
|
|
OCAMLDOC_LIBCMI=odoc_info.cmi
|
|
|
|
OCAMLDOC_LIBCMXA=odoc_info.cmxa
|
|
|
|
OCAMLDOC_LIBA=odoc_info.a
|
2002-03-29 03:40:00 -08:00
|
|
|
INSTALL_LIBDIR=$(OCAMLLIB)/ocamldoc
|
2002-03-27 08:20:32 -08:00
|
|
|
INSTALL_BINDIR=$(OCAMLBIN)
|
2002-04-24 01:32:43 -07:00
|
|
|
INSTALL_MANODIR=$(MANDIR)/mano
|
2002-03-27 08:20:32 -08:00
|
|
|
|
|
|
|
INSTALL_MLIS=odoc_info.mli
|
|
|
|
INSTALL_CMIS=$(INSTALL_MLIS:.mli=.cmi)
|
|
|
|
|
|
|
|
# Compilation
|
|
|
|
#############
|
2002-04-29 02:26:59 -07:00
|
|
|
OCAMLSRCDIR=..
|
|
|
|
INCLUDES=-I $(OCAMLSRCDIR)/parsing \
|
2002-03-27 08:20:32 -08:00
|
|
|
-I $(OCAMLSRCDIR)/utils \
|
|
|
|
-I $(OCAMLSRCDIR)/typing \
|
|
|
|
-I $(OCAMLSRCDIR)/driver \
|
|
|
|
-I $(OCAMLSRCDIR)/bytecomp \
|
|
|
|
-I $(OCAMLSRCDIR)/tools \
|
|
|
|
-I $(OCAMLSRCDIR)/stdlib \
|
|
|
|
-I $(OCAMLSRCDIR)/otherlibs/str \
|
|
|
|
-I $(OCAMLSRCDIR)/otherlibs/dynlink \
|
|
|
|
-I $(OCAMLSRCDIR)/otherlibs/unix \
|
|
|
|
-I $(OCAMLSRCDIR)/otherlibs/num \
|
|
|
|
-I $(OCAMLSRCDIR)/otherlibs/graph \
|
2002-04-29 02:26:59 -07:00
|
|
|
-I $(OCAMLSRCDIR)/toplevel/
|
2002-03-27 08:20:32 -08:00
|
|
|
|
2002-04-29 02:26:59 -07:00
|
|
|
COMPFLAGS=$(INCLUDES) -warn-error A
|
2002-03-27 08:20:32 -08:00
|
|
|
LINKFLAGS=$(INCLUDES)
|
|
|
|
|
|
|
|
CMOFILES= odoc_global.cmo\
|
|
|
|
odoc_messages.cmo\
|
|
|
|
odoc_types.cmo\
|
|
|
|
odoc_misc.cmo\
|
|
|
|
odoc_text_parser.cmo\
|
|
|
|
odoc_text_lexer.cmo\
|
|
|
|
odoc_text.cmo\
|
|
|
|
odoc_name.cmo\
|
|
|
|
odoc_parameter.cmo\
|
|
|
|
odoc_value.cmo\
|
|
|
|
odoc_type.cmo\
|
|
|
|
odoc_exception.cmo\
|
|
|
|
odoc_class.cmo\
|
|
|
|
odoc_module.cmo\
|
|
|
|
odoc_str.cmo\
|
|
|
|
odoc_args.cmo\
|
|
|
|
odoc_comments_global.cmo\
|
|
|
|
odoc_parser.cmo\
|
|
|
|
odoc_lexer.cmo\
|
|
|
|
odoc_see_lexer.cmo\
|
|
|
|
odoc_comments.cmo\
|
|
|
|
odoc_env.cmo\
|
|
|
|
odoc_merge.cmo\
|
|
|
|
odoc_sig.cmo\
|
|
|
|
odoc_ast.cmo\
|
|
|
|
odoc_control.cmo\
|
|
|
|
odoc_inherit.cmo\
|
|
|
|
odoc_search.cmo\
|
|
|
|
odoc_cross.cmo\
|
|
|
|
odoc_dep.cmo\
|
|
|
|
odoc_analyse.cmo\
|
|
|
|
odoc_scan.cmo\
|
|
|
|
odoc_info.cmo
|
|
|
|
|
|
|
|
|
|
|
|
CMXFILES= $(CMOFILES:.cmo=.cmx)
|
|
|
|
CMIFILES= $(CMOFILES:.cmo=.cmi)
|
|
|
|
|
|
|
|
EXECMOFILES=$(CMOFILES)\
|
|
|
|
odoc_dag2html.cmo\
|
|
|
|
odoc_to_text.cmo\
|
|
|
|
odoc_ocamlhtml.cmo\
|
|
|
|
odoc_html.cmo\
|
|
|
|
odoc_man.cmo\
|
|
|
|
odoc_latex.cmo\
|
2002-04-05 03:25:22 -08:00
|
|
|
odoc_texi.cmo\
|
2002-04-29 02:26:59 -07:00
|
|
|
odoc_dot.cmo
|
2002-03-27 08:20:32 -08:00
|
|
|
|
|
|
|
EXECMXFILES= $(EXECMOFILES:.cmo=.cmx)
|
|
|
|
EXECMIFILES= $(EXECMOFILES:.cmo=.cmi)
|
|
|
|
|
|
|
|
LIBCMOFILES=$(CMOFILES)
|
|
|
|
LIBCMXFILES= $(LIBCMOFILES:.cmo=.cmx)
|
|
|
|
LIBCMIFILES= $(LIBCMOFILES:.cmo=.cmi)
|
|
|
|
|
|
|
|
# Les cmo et cmx de la distrib OCAML
|
|
|
|
OCAMLCMOFILES=$(OCAMLSRCDIR)/parsing/printast.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/ident.cmo \
|
|
|
|
$(OCAMLSRCDIR)/utils/tbl.cmo \
|
|
|
|
$(OCAMLSRCDIR)/utils/misc.cmo \
|
|
|
|
$(OCAMLSRCDIR)/utils/config.cmo \
|
|
|
|
$(OCAMLSRCDIR)/utils/clflags.cmo \
|
|
|
|
$(OCAMLSRCDIR)/utils/warnings.cmo \
|
|
|
|
$(OCAMLSRCDIR)/utils/ccomp.cmo \
|
|
|
|
$(OCAMLSRCDIR)/parsing/linenum.cmo\
|
|
|
|
$(OCAMLSRCDIR)/parsing/location.cmo\
|
|
|
|
$(OCAMLSRCDIR)/parsing/longident.cmo \
|
|
|
|
$(OCAMLSRCDIR)/parsing/syntaxerr.cmo \
|
|
|
|
$(OCAMLSRCDIR)/parsing/parser.cmo \
|
|
|
|
$(OCAMLSRCDIR)/parsing/lexer.cmo \
|
|
|
|
$(OCAMLSRCDIR)/parsing/parse.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/types.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/path.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/btype.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/predef.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/datarepr.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/subst.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/env.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/ctype.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/primitive.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/oprint.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/printtyp.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/includecore.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/typetexp.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/parmatch.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/typedtree.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/typecore.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/includeclass.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/typedecl.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/typeclass.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/mtype.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/includemod.cmo \
|
|
|
|
$(OCAMLSRCDIR)/typing/typemod.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/lambda.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/typeopt.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/printlambda.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/switch.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/matching.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/translobj.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/translcore.cmo \
|
|
|
|
$(OCAMLSRCDIR)/bytecomp/translclass.cmo \
|
|
|
|
$(OCAMLSRCDIR)/tools/depend.cmo
|
|
|
|
|
|
|
|
OCAMLCMXFILES=$(OCAMLCMOFILES:.cmo=.cmx)
|
|
|
|
|
2002-04-29 02:26:59 -07:00
|
|
|
all: exe lib manpages
|
2002-03-27 08:20:32 -08:00
|
|
|
exe: $(OCAMLDOC)
|
|
|
|
lib: $(OCAMLDOC_LIBCMA) $(OCAMLDOC_LIBCMI)
|
|
|
|
|
|
|
|
opt.opt: exeopt libopt
|
|
|
|
exeopt: $(OCAMLDOC_OPT)
|
|
|
|
libopt: $(OCAMLDOC_LIBCMXA) $(OCAMLDOC_LIBCMI)
|
|
|
|
debug:
|
|
|
|
make OCAMLPP=""
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
$(OCAMLDOC): $(EXECMOFILES) odoc_crc.cmo odoc.cmo
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLC) -o $@ unix.cma str.cma dynlink.cma $(LINKFLAGS) $(OCAMLCMOFILES) $(EXECMOFILES) odoc_crc.cmo odoc.cmo
|
2002-04-26 06:07:59 -07:00
|
|
|
$(OCAMLDOC_OPT): $(EXECMXFILES) odoc_opt.cmx
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLOPT) -o $@ unix.cmxa str.cmxa $(LINKFLAGS) $(OCAMLCMXFILES) $(EXECMXFILES) odoc_opt.cmx
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
$(OCAMLDOC_LIBCMA): $(LIBCMOFILES)
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLC) -a -o $@ $(LINKFLAGS) $(OCAMLCMOFILES) $(LIBCMOFILES)
|
2002-04-26 06:07:59 -07:00
|
|
|
$(OCAMLDOC_LIBCMXA): $(LIBCMXFILES)
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLOPT) -a -o $@ $(LINKFLAGS) $(OCAMLCMXFILES) $(LIBCMXFILES)
|
|
|
|
|
2002-04-22 02:40:14 -07:00
|
|
|
manpages: stdlib_man
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
odoc_crc.ml: $(CMIFILES)
|
|
|
|
$(EXTRAC_CRC) $(INCLUDES)\
|
|
|
|
Arg Arith_status Array Big_int Buffer Callback Char Digest Dynlink \
|
2002-04-09 07:42:12 -07:00
|
|
|
Filename Format Gc Genlex Hashtbl \
|
2002-03-27 08:20:32 -08:00
|
|
|
Lazy Lexing List Map Marshal Nat\
|
2002-04-30 04:26:40 -07:00
|
|
|
Num Obj CamlinternalOO Outcometree Parsing Pervasives Printexc\
|
2002-03-27 08:20:32 -08:00
|
|
|
Printf Profiling Queue Random Ratio\
|
|
|
|
Set Sort Stack Std_exit Str Stream\
|
|
|
|
String Sys Topdirs Toploop Unix Weak\
|
|
|
|
Printast \
|
|
|
|
Ident \
|
|
|
|
Tbl \
|
|
|
|
Misc \
|
|
|
|
Config \
|
|
|
|
Clflags \
|
|
|
|
Warnings \
|
|
|
|
Ccomp \
|
|
|
|
Linenum\
|
|
|
|
Location\
|
|
|
|
Longident \
|
|
|
|
Syntaxerr \
|
|
|
|
Parser \
|
|
|
|
Lexer \
|
|
|
|
Parse \
|
|
|
|
Types \
|
|
|
|
Path \
|
|
|
|
Btype \
|
|
|
|
Predef \
|
|
|
|
Datarepr \
|
|
|
|
Subst \
|
|
|
|
Env \
|
|
|
|
Ctype \
|
|
|
|
Primitive \
|
|
|
|
Oprint \
|
|
|
|
Printtyp \
|
|
|
|
Includecore \
|
|
|
|
Typetexp \
|
|
|
|
Parmatch \
|
|
|
|
Typedtree \
|
|
|
|
Typecore \
|
|
|
|
Includeclass \
|
|
|
|
Typedecl \
|
|
|
|
Typeclass \
|
|
|
|
Mtype \
|
|
|
|
Includemod \
|
|
|
|
Typemod \
|
|
|
|
Lambda \
|
|
|
|
Typeopt \
|
|
|
|
Printlambda \
|
|
|
|
Switch \
|
|
|
|
Matching \
|
|
|
|
Translobj \
|
|
|
|
Translcore \
|
|
|
|
Bytesections \
|
|
|
|
Runtimedef \
|
|
|
|
Symtable \
|
|
|
|
Opcodes \
|
|
|
|
Bytelink \
|
|
|
|
Bytelibrarian \
|
|
|
|
Translclass \
|
|
|
|
Errors \
|
|
|
|
Main_args \
|
|
|
|
Asttypes \
|
|
|
|
Depend \
|
|
|
|
Odoc_global Odoc_args Odoc_info Odoc_messages Odoc_types\
|
|
|
|
Odoc_misc Odoc_text_parser Odoc_text_lexer\
|
|
|
|
Odoc_text Odoc_comments_global Odoc_parser\
|
|
|
|
Odoc_lexer Odoc_comments Odoc_name Odoc_parameter\
|
|
|
|
Odoc_value Odoc_type Odoc_exception Odoc_class\
|
|
|
|
Odoc_module Odoc_str Odoc_args Odoc_env\
|
|
|
|
Odoc_sig Odoc_ast Odoc_control Odoc_inherit\
|
|
|
|
Odoc_search Odoc_cross Odoc_merge Odoc_analyse\
|
|
|
|
Odoc_dag2html Odoc_ocamlhtml Odoc_html\
|
2002-04-05 05:31:12 -08:00
|
|
|
Odoc_latex Odoc_man Odoc_texi Odoc_scan > $@
|
2002-03-27 08:20:32 -08:00
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
# Parsers and lexers dependencies :
|
|
|
|
###################################
|
|
|
|
odoc_text_parser.ml: odoc_text_parser.mly
|
|
|
|
odoc_text_parser.mli: odoc_text_parser.mly
|
|
|
|
|
|
|
|
odoc_parser.ml: odoc_parser.mly
|
|
|
|
odoc_parser.mli:odoc_parser.mly
|
|
|
|
|
|
|
|
odoc_text_lexer.ml: odoc_text_lexer.mll
|
|
|
|
|
|
|
|
odoc_lexer.ml:odoc_lexer.mll
|
|
|
|
|
|
|
|
odoc_ocamlhtml.ml: odoc_ocamlhtml.mll
|
|
|
|
|
|
|
|
odoc_see_lexer.ml: odoc_see_lexer.mll
|
|
|
|
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
# generic rules :
|
|
|
|
#################
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
.SUFFIXES: .mll .mly .ml .mli .cmo .cmi .cmx
|
2002-03-27 08:20:32 -08:00
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
.ml.cmo:
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLC) $(OCAMLPP) $(COMPFLAGS) -c $<
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
.mli.cmi:
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLC) $(OCAMLPP) $(COMPFLAGS) -c $<
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
.ml.cmx:
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLOPT) $(OCAMLPP) $(COMPFLAGS) -c $<
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
.mll.ml:
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLLEX) $<
|
|
|
|
|
2002-04-26 06:07:59 -07:00
|
|
|
.mly.ml:
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLYACC) -v $<
|
|
|
|
|
2002-04-29 02:26:59 -07:00
|
|
|
.mly.mli:
|
|
|
|
$(OCAMLYACC) -v $<
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
# Installation targets
|
|
|
|
######################
|
|
|
|
install: dummy
|
|
|
|
if test -d $(INSTALL_BINDIR); then : ; else $(MKDIR) $(INSTALL_BINDIR); fi
|
|
|
|
if test -d $(INSTALL_LIBDIR); then : ; else $(MKDIR) $(INSTALL_LIBDIR); fi
|
|
|
|
$(CP) $(OCAMLDOC) $(INSTALL_BINDIR)
|
|
|
|
$(CP) ocamldoc.sty ocamldoc.hva *.cmi $(GENERATORS) $(OCAMLDOC_LIBCMA) $(INSTALL_LIBDIR)
|
|
|
|
$(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR)
|
2002-04-24 01:32:43 -07:00
|
|
|
if test -d $(INSTALL_MANODIR); then : ; else $(MKDIR) $(INSTALL_MANODIR); fi
|
|
|
|
$(CP) stdlib_man/* $(INSTALL_MANODIR)
|
2002-03-27 08:20:32 -08:00
|
|
|
|
|
|
|
installopt:
|
2002-04-02 01:15:25 -08:00
|
|
|
if test -f $(OCAMLDOC_OPT) ; then $(MAKE) installopt_really ; fi
|
|
|
|
|
|
|
|
installopt_really:
|
2002-03-27 08:20:32 -08:00
|
|
|
if test -d $(INSTALL_BINDIR); then : ; else $(MKDIR) $(INSTALL_BINDIR); fi
|
|
|
|
if test -d $(INSTALL_LIBDIR); then : ; else $(MKDIR) $(INSTALL_LIBDIR); fi
|
|
|
|
$(CP) $(OCAMLDOC_OPT) $(INSTALL_BINDIR)
|
|
|
|
$(CP) ocamldoc.sty ocamldoc.hva $(OCAMLDOC_LIBA) $(OCAMLDOC_LIBCMXA) $(INSTALL_LIBDIR)
|
|
|
|
$(CP) $(INSTALL_MLIS) $(INSTALL_CMIS) $(INSTALL_LIBDIR)
|
|
|
|
|
2002-04-03 08:38:29 -08:00
|
|
|
# Testing :
|
|
|
|
###########
|
|
|
|
test: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -html -colorize-code -d $@ $(INCLUDES) -dump $@/ocamldoc.odoc odoc*.ml odoc*.mli
|
2002-04-03 08:38:29 -08:00
|
|
|
|
2002-04-04 00:38:53 -08:00
|
|
|
test_stdlib: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -html -colorize-code -d $@ $(INCLUDES) -dump $@/stdlib.odoc ../stdlib/*.mli \
|
2002-04-04 00:38:53 -08:00
|
|
|
../otherlibs/unix/unix.mli \
|
|
|
|
../otherlibs/str/str.mli
|
|
|
|
|
2002-04-03 08:38:29 -08:00
|
|
|
test_framed: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -g odoc_fhtml.cmo -colorize-code -d $@ $(INCLUDES) odoc*.ml odoc*.mli
|
2002-04-03 08:38:29 -08:00
|
|
|
|
|
|
|
test_latex: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -latex -d $@ $(INCLUDES) odoc*.ml odoc*.mli
|
2002-03-27 08:20:32 -08:00
|
|
|
|
2002-04-05 03:25:22 -08:00
|
|
|
test_man: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -man -d $@ $(INCLUDES) odoc*.ml odoc*.mli
|
2002-04-05 03:25:22 -08:00
|
|
|
|
|
|
|
test_texi: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -texi -d $@ $(INCLUDES) odoc*.ml odoc*.mli
|
2002-04-05 03:25:22 -08:00
|
|
|
|
2002-04-22 02:40:14 -07:00
|
|
|
stdlib_man: dummy
|
|
|
|
$(MKDIR) $@
|
2002-04-25 08:07:40 -07:00
|
|
|
$(OCAMLDOC_RUN) -man -d $@ $(INCLUDES) ../stdlib/*.mli \
|
2002-04-23 04:35:15 -07:00
|
|
|
-t "OCaml library" -man-mini \
|
2002-04-22 02:40:14 -07:00
|
|
|
../otherlibs/unix/unix.mli \
|
|
|
|
../otherlibs/str/str.mli \
|
|
|
|
../otherlibs/bigarray/bigarray.mli \
|
|
|
|
../otherlibs/num/num.mli
|
|
|
|
|
2002-03-27 08:20:32 -08:00
|
|
|
# backup, clean and depend :
|
|
|
|
############################
|
|
|
|
|
|
|
|
clean:: dummy
|
|
|
|
@rm -f *~ \#*\#
|
2002-03-29 03:40:00 -08:00
|
|
|
@rm -f $(OCAMLDOC) $(OCAMLDOC_OPT) *.cma *.cmxa *.cmo *.cmi *.cmx *.a *.o
|
2002-03-27 08:20:32 -08:00
|
|
|
@rm -f odoc_parser.output odoc_text_parser.output
|
|
|
|
@rm -f odoc_lexer.ml odoc_text_lexer.ml odoc_see_lexer.ml odoc_ocamlhtml.ml
|
|
|
|
@rm -f odoc_parser.ml odoc_parser.mli odoc_text_parser.ml odoc_text_parser.mli odoc_crc.ml
|
|
|
|
|
|
|
|
.depend depend::
|
|
|
|
rm -f .depend
|
|
|
|
$(OCAMLYACC) odoc_text_parser.mly
|
|
|
|
$(OCAMLYACC) odoc_parser.mly
|
|
|
|
$(OCAMLLEX) odoc_text_lexer.mll
|
|
|
|
$(OCAMLLEX) odoc_lexer.mll
|
2002-04-05 01:20:00 -08:00
|
|
|
$(OCAMLLEX) odoc_ocamlhtml.mll
|
|
|
|
$(OCAMLLEX) odoc_see_lexer.mll
|
2002-03-27 08:20:32 -08:00
|
|
|
$(OCAMLDEP) $(INCLUDES) *.mll *.mly *.ml *.mli > .depend
|
|
|
|
|
|
|
|
dummy:
|
|
|
|
|
|
|
|
include .depend
|