2001-12-13 05:59:27 -08:00
|
|
|
|
#######################################################################
|
|
|
|
|
# #
|
|
|
|
|
# Camlp4 #
|
|
|
|
|
# #
|
|
|
|
|
# Damien Doligez, projet Para, INRIA Rocquencourt #
|
|
|
|
|
# #
|
|
|
|
|
# Copyright 1999 Institut National de Recherche en Informatique et #
|
|
|
|
|
# en Automatique. Distributed only by permission. #
|
|
|
|
|
# #
|
|
|
|
|
#######################################################################
|
|
|
|
|
|
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
|
|
INCLUDES = -I ::camlp4: -I ::boot:
|
|
|
|
|
OCAMLCFLAGS = {INCLUDES}
|
|
|
|
|
OBJS = q_phony.cmo pa_o.cmo pa_op.cmo pa_oop.cmo pa_ru.cmo pa_format.cmo <20>
|
2002-07-19 07:53:56 -07:00
|
|
|
|
pa_olabl.cmo pa_sml.cmo pa_lisp.cmo pa_extfold.cmo pa_extfun.cmo pa_fstream.cmo spa_lefteval.cmo <20>
|
2001-12-13 05:59:27 -08:00
|
|
|
|
pr_r.cmo pr_rp.cmo pr_o.cmo pr_op.cmo pr_extend.cmo <20>
|
|
|
|
|
pr_extfun.cmo pr_null.cmo pr_depend.cmo
|
|
|
|
|
INTF = pa_o.cmi
|
|
|
|
|
CAMLP4OM = pa_o.cmo pa_op.cmo ::meta:pr_dump.cmo
|
|
|
|
|
OUT = {OBJS} camlp4o
|
|
|
|
|
|
|
|
|
|
all <EFBFBD> {OUT} mkcamlp4.mpw
|
|
|
|
|
|
|
|
|
|
camlp4o <20> ::camlp4:camlp4 {CAMLP4OM}
|
|
|
|
|
delete -i camlp4o
|
|
|
|
|
directory ::camlp4:
|
|
|
|
|
domake -d CAMLP4=::etc:camlp4o -d CAMLP4M="-I ::etc: {CAMLP4OM}"
|
|
|
|
|
directory ::etc:
|
|
|
|
|
|
|
|
|
|
mkcamlp4.mpw <EFBFBD> mkcamlp4.mpw.tpl
|
|
|
|
|
streamedit -e "1,$ replace -c <20> /OLIBDIR/ <20>"`quote "{OLIBDIR}"`<EFBFBD>"" <20>
|
|
|
|
|
-e "1,$ replace -c <20> /LIBDIR/ <20>"`quote "{P4LIBDIR}"`<EFBFBD>"" <20>
|
|
|
|
|
mkcamlp4.mpw.tpl > mkcamlp4.mpw
|
|
|
|
|
|
|
|
|
|
bootstrap_lisp <EFBFBD> $OutOfDate
|
|
|
|
|
::boot:camlp4 :pa_lispr.cmo -I ::boot: pa_extend.cmo q_MLast.cmo <20>
|
|
|
|
|
:pr_r.cmo :pr_extend.cmo :pr_rp.cmo -phony_quot pa_lisp.ml <20>
|
|
|
|
|
| streamedit -e '1,$ replace /<2F>;; (<28>)<29>0<EFBFBD>/ "(* " <20>0 " *)"' <20>
|
|
|
|
|
-e "1,$ replace /'./pa_lispr.cmo'/ 'pa_r.cmo pa_rp.cmo'" >tmp
|
|
|
|
|
rename -y pa_lispr.ml pa_lispr.ml.old
|
|
|
|
|
rename -y tmp pa_lispr.ml
|
|
|
|
|
|
|
|
|
|
compare_lisp <EFBFBD> $OutOfDate
|
|
|
|
|
set status 0
|
|
|
|
|
|
|
|
|
|
clean <EFBFBD><EFBFBD>
|
|
|
|
|
delete -i mkcamlp4.mpw camlp4o
|
|
|
|
|
|
|
|
|
|
{dependrule}
|
|
|
|
|
|
|
|
|
|
get_promote <EFBFBD> $OutOfDate
|
|
|
|
|
|
|
|
|
|
install <EFBFBD>
|
|
|
|
|
(newfolder "{P4LIBDIR}" || set status 0) <20> dev:null
|
|
|
|
|
(newfolder "{BINDIR}" || set status 0) <20> dev:null
|
|
|
|
|
duplicate -y {OBJS} "{P4LIBDIR}"
|
|
|
|
|
duplicate -y {INTF} "{P4LIBDIR}"
|
|
|
|
|
duplicate -y lib.sml "{P4LIBDIR}"
|
|
|
|
|
duplicate -y camlp4o "{BINDIR}"
|
|
|
|
|
duplicate -y mkcamlp4.mpw "{BINDIR}mkcamlp4"
|
|
|
|
|
|
|
|
|
|
{defrules}
|
|
|
|
|
|
|
|
|
|
pa_lisp.cmo<EFBFBD> pa_lispr.cmo
|
|
|
|
|
pr_extend.cmo<EFBFBD> pa_extfun.cmo
|
|
|
|
|
pr_o.cmo<EFBFBD> pa_extfun.cmo
|
|
|
|
|
pr_op.cmo<EFBFBD> pa_extfun.cmo
|
|
|
|
|
pr_r.cmo<EFBFBD> pa_extfun.cmo
|
|
|
|
|
pr_rp.cmo<EFBFBD> pa_extfun.cmo
|