From ee954d84d3caa572531adfd16cd7e31990028369 Mon Sep 17 00:00:00 2001 From: Daniel de Rauglaudre Date: Mon, 24 Dec 2001 10:21:09 +0000 Subject: [PATCH] Changed the BINDIR in camlp4 to represent the same BINDIR than ocaml. The installation of the camlp4 stuff, which does not change, is then done in $BINDIR/camlp4. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4184 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- Makefile | 2 +- camlp4/camlp4/Makefile | 7 ++++--- camlp4/config/Makefile-nt.cnf | 2 +- camlp4/etc/Makefile | 8 ++++---- camlp4/etc/mkcamlp4.sh.tpl | 2 +- camlp4/lib/Makefile | 12 ++++++------ camlp4/man/camlp4.1.tpl | 4 ++-- camlp4/meta/Makefile | 6 +++--- camlp4/ocaml_src/camlp4/Makefile | 7 ++++--- camlp4/ocaml_src/lib/Makefile | 12 ++++++------ camlp4/ocaml_src/meta/Makefile | 6 +++--- camlp4/ocaml_src/odyl/Makefile | 6 +++--- camlp4/ocpp/Makefile | 4 ++-- camlp4/odyl/Makefile | 6 +++--- camlp4/top/Makefile | 4 ++-- configure | 2 +- 16 files changed, 46 insertions(+), 44 deletions(-) diff --git a/Makefile b/Makefile index b72c76403..bd8c01ffc 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,7 @@ install: FORCE (cd otherlibs/$$i; $(MAKE) install) || exit $$?; \ done if test -f ocamlopt; then $(MAKE) installopt; else :; fi - cd camlp4; $(MAKE) install LIBDIR=$(LIBDIR)/camlp4 + cd camlp4; $(MAKE) install LIBDIR=$(LIBDIR) if test -f debugger/ocamldebug; then (cd debugger; $(MAKE) install); else :; fi # Installation of the native-code compiler diff --git a/camlp4/camlp4/Makefile b/camlp4/camlp4/Makefile index eee846fc6..3217fee76 100644 --- a/camlp4/camlp4/Makefile +++ b/camlp4/camlp4/Makefile @@ -62,9 +62,10 @@ compare: install: -$(MKDIR) $(BINDIR) + -$(MKDIR) $(LIBDIR)/camlp4 cp $(CAMLP4) $(BINDIR)/. - cp mLast.mli quotation.mli ast2pt.mli pcaml.mli spretty.mli $(LIBDIR)/. - cp mLast.cmi quotation.cmi ast2pt.cmi pcaml.cmi spretty.cmi $(LIBDIR)/. - cp camlp4.cma $(LIBDIR)/. + cp mLast.mli quotation.mli ast2pt.mli pcaml.mli spretty.mli $(LIBDIR)/camlp4/. + cp mLast.cmi quotation.cmi ast2pt.cmi pcaml.cmi spretty.cmi $(LIBDIR)/camlp4/. + cp camlp4.cma $(LIBDIR)/camlp4/. include .depend diff --git a/camlp4/config/Makefile-nt.cnf b/camlp4/config/Makefile-nt.cnf index a2a0154bc..379f33850 100644 --- a/camlp4/config/Makefile-nt.cnf +++ b/camlp4/config/Makefile-nt.cnf @@ -3,5 +3,5 @@ OPT= OTOP=../.. OLIBDIR=$(OTOP)/boot BINDIR=C:/ocaml/bin -LIBDIR=C:/ocaml/lib/camlp4 +LIBDIR=C:/ocaml/lib MANDIR=C:/ocaml/man diff --git a/camlp4/etc/Makefile b/camlp4/etc/Makefile index dfa82b4b6..9e3205a21 100644 --- a/camlp4/etc/Makefile +++ b/camlp4/etc/Makefile @@ -48,10 +48,10 @@ depend: get_promote: install: - -$(MKDIR) $(LIBDIR) $(BINDIR) - cp $(OBJS) $(LIBDIR)/. - cp $(INTF) $(LIBDIR)/. - cp lib.sml $(LIBDIR)/. + -$(MKDIR) $(LIBDIR)/camlp4 $(BINDIR) + cp $(OBJS) $(LIBDIR)/camlp4/. + cp $(INTF) $(LIBDIR)/camlp4/. + cp lib.sml $(LIBDIR)/camlp4/. cp camlp4o$(EXE) $(BINDIR)/. if test -f $(COPT); then cp $(COPT) $(BINDIR)/.; fi cp mkcamlp4.sh $(BINDIR)/mkcamlp4 diff --git a/camlp4/etc/mkcamlp4.sh.tpl b/camlp4/etc/mkcamlp4.sh.tpl index e4657a63b..2fd04ae8c 100755 --- a/camlp4/etc/mkcamlp4.sh.tpl +++ b/camlp4/etc/mkcamlp4.sh.tpl @@ -2,7 +2,7 @@ # $Id$ OLIB=`ocamlc -where` -LIB=LIBDIR +LIB=LIBDIR/camlp4 INTERFACES= OPTS= diff --git a/camlp4/lib/Makefile b/camlp4/lib/Makefile index 2d3895faf..5243e3dc4 100644 --- a/camlp4/lib/Makefile +++ b/camlp4/lib/Makefile @@ -36,17 +36,17 @@ compare: done install: - -$(MKDIR) $(LIBDIR) - cp $(TARGET) *.mli $(LIBDIR)/. - cp *.cmi $(LIBDIR)/. + -$(MKDIR) $(LIBDIR)/camlp4 + cp $(TARGET) *.mli $(LIBDIR)/camlp4/. + cp *.cmi $(LIBDIR)/camlp4/. if test -f $(TARGET:.cma=.cmxa); then $(MAKE) installopt LIBDIR=$(LIBDIR); fi installopt: - cp $(TARGET:.cma=.cmxa) *.cmx $(LIBDIR)/. + cp $(TARGET:.cma=.cmxa) *.cmx $(LIBDIR)/camlp4/. if test -f $(TARGET:.cma=.lib); then \ - cp $(TARGET:.cma=.lib) $(LIBDIR)/.; \ + cp $(TARGET:.cma=.lib) $(LIBDIR)/camlp4/.; \ else \ - tar cf - $(TARGET:.cma=.a) | (cd $(LIBDIR)/.; tar xf -); \ + tar cf - $(TARGET:.cma=.a) | (cd $(LIBDIR)/camlp4/.; tar xf -); \ fi include .depend diff --git a/camlp4/man/camlp4.1.tpl b/camlp4/man/camlp4.1.tpl index 0fc617b88..1042f2e47 100644 --- a/camlp4/man/camlp4.1.tpl +++ b/camlp4/man/camlp4.1.tpl @@ -181,7 +181,7 @@ Added by pa_ifdef.cmo: define the ident. Added by pa_ifdef.cmo: undefine the ident. .SH "PROVIDED FILES" -These files are installed in the directory LIBDIR. +These files are installed in the directory LIBDIR/camlp4. .LP Parsing files: @@ -262,7 +262,7 @@ the OCaml module "str": .SH "FILES" Camlp4 library directory in the present installation: .br -LIBDIR +LIBDIR/camlp4 .SH "SEE ALSO" Camlp4 - tutorial diff --git a/camlp4/meta/Makefile b/camlp4/meta/Makefile index b4e66984f..d26438d91 100644 --- a/camlp4/meta/Makefile +++ b/camlp4/meta/Makefile @@ -42,9 +42,9 @@ compare: done install: - -$(MKDIR) $(LIBDIR) $(BINDIR) - cp $(OBJS) $(LIBDIR)/. - cp pa_ifdef.cmi $(LIBDIR)/. + -$(MKDIR) $(LIBDIR)/camlp4 $(BINDIR) + cp $(OBJS) $(LIBDIR)/camlp4/. + cp pa_ifdef.cmi $(LIBDIR)/camlp4/. cp camlp4r$(EXE) $(BINDIR)/. if test -f $(COPT); then cp $(COPT) $(BINDIR)/.; fi diff --git a/camlp4/ocaml_src/camlp4/Makefile b/camlp4/ocaml_src/camlp4/Makefile index 752612b4b..124af00af 100644 --- a/camlp4/ocaml_src/camlp4/Makefile +++ b/camlp4/ocaml_src/camlp4/Makefile @@ -62,9 +62,10 @@ compare: install: -$(MKDIR) $(BINDIR) + -$(MKDIR) $(LIBDIR)/camlp4 cp $(CAMLP4) $(BINDIR)/. - cp mLast.mli quotation.mli ast2pt.mli pcaml.mli spretty.mli $(LIBDIR)/. - cp mLast.cmi quotation.cmi ast2pt.cmi pcaml.cmi spretty.cmi $(LIBDIR)/. - cp camlp4.cma $(LIBDIR)/. + cp mLast.mli quotation.mli ast2pt.mli pcaml.mli spretty.mli $(LIBDIR)/camlp4/. + cp mLast.cmi quotation.cmi ast2pt.cmi pcaml.cmi spretty.cmi $(LIBDIR)/camlp4/. + cp camlp4.cma $(LIBDIR)/camlp4/. include .depend diff --git a/camlp4/ocaml_src/lib/Makefile b/camlp4/ocaml_src/lib/Makefile index dc6774d9f..254b6161f 100644 --- a/camlp4/ocaml_src/lib/Makefile +++ b/camlp4/ocaml_src/lib/Makefile @@ -36,17 +36,17 @@ compare: done install: - -$(MKDIR) $(LIBDIR) - cp $(TARGET) *.mli $(LIBDIR)/. - cp *.cmi $(LIBDIR)/. + -$(MKDIR) $(LIBDIR)/camlp4 + cp $(TARGET) *.mli $(LIBDIR)/camlp4/. + cp *.cmi $(LIBDIR)/camlp4/. if test -f $(TARGET:.cma=.cmxa); then $(MAKE) installopt LIBDIR=$(LIBDIR); fi installopt: - cp $(TARGET:.cma=.cmxa) *.cmx $(LIBDIR)/. + cp $(TARGET:.cma=.cmxa) *.cmx $(LIBDIR)/camlp4/. if test -f $(TARGET:.cma=.lib); then \ - cp $(TARGET:.cma=.lib) $(LIBDIR)/.; \ + cp $(TARGET:.cma=.lib) $(LIBDIR)/camlp4/.; \ else \ - tar cf - $(TARGET:.cma=.a) | (cd $(LIBDIR)/.; tar xf -); \ + tar cf - $(TARGET:.cma=.a) | (cd $(LIBDIR)/camlp4/.; tar xf -); \ fi include .depend diff --git a/camlp4/ocaml_src/meta/Makefile b/camlp4/ocaml_src/meta/Makefile index d0bfc892c..a4decb9d7 100644 --- a/camlp4/ocaml_src/meta/Makefile +++ b/camlp4/ocaml_src/meta/Makefile @@ -42,9 +42,9 @@ compare: done install: - -$(MKDIR) $(LIBDIR) $(BINDIR) - cp $(OBJS) $(LIBDIR)/. - cp pa_ifdef.cmi $(LIBDIR)/. + -$(MKDIR) $(LIBDIR)/camlp4 $(BINDIR) + cp $(OBJS) $(LIBDIR)/camlp4/. + cp pa_ifdef.cmi $(LIBDIR)/camlp4/. cp camlp4r$(EXE) $(BINDIR)/. if test -f $(COPT); then cp $(COPT) $(BINDIR)/.; fi diff --git a/camlp4/ocaml_src/odyl/Makefile b/camlp4/ocaml_src/odyl/Makefile index d048baddb..5d3be43cf 100644 --- a/camlp4/ocaml_src/odyl/Makefile +++ b/camlp4/ocaml_src/odyl/Makefile @@ -31,7 +31,7 @@ odyl_main.cmx: odyl_main.ml odyl_config.ml: echo "let standard_library =" > odyl_config.ml echo " try Sys.getenv \"CAMLP4LIB\" with" >> odyl_config.ml - echo " Not_found -> \"$(LIBDIR)\"" >> odyl_config.ml + echo " Not_found -> \"$(LIBDIR)/camlp4\"" >> odyl_config.ml clean:: rm -f *.cm* *.pp[io] *.o *.bak .*.bak *.out *.opt *.a @@ -49,8 +49,8 @@ promote: compare: install: - -$(MKDIR) $(LIBDIR) $(BINDIR) - cp odyl.cmo odyl.cma $(LIBDIR) + -$(MKDIR) $(LIBDIR)/camlp4 $(BINDIR) + cp odyl.cmo odyl.cma $(LIBDIR)/camlp4/. cp odyl$(EXE) $(BINDIR)/. include .depend diff --git a/camlp4/ocpp/Makefile b/camlp4/ocpp/Makefile index 166611aa4..79a4d8807 100644 --- a/camlp4/ocpp/Makefile +++ b/camlp4/ocpp/Makefile @@ -24,8 +24,8 @@ clean:: rm -f *.cm[ioa] *.pp[io] *.o *.out *.bak .*.bak crc.ml ocpp$(EXE) install: - -$(MKDIR) $(LIBDIR) $(BINDIR) - cp $(OBJS) $(LIBDIR) + -$(MKDIR) $(LIBDIR)/camlp4 $(BINDIR) + cp $(OBJS) $(LIBDIR)/camlp4/. cp ocpp$(EXE) $(BINDIR)/. depend: diff --git a/camlp4/odyl/Makefile b/camlp4/odyl/Makefile index 61d4d103c..5f3f99ad4 100644 --- a/camlp4/odyl/Makefile +++ b/camlp4/odyl/Makefile @@ -31,7 +31,7 @@ odyl_main.cmx: odyl_main.ml odyl_config.ml: echo "let standard_library =" > odyl_config.ml echo " try Sys.getenv \"CAMLP4LIB\" with" >> odyl_config.ml - echo " Not_found -> \"$(LIBDIR)\"" >> odyl_config.ml + echo " Not_found -> \"$(LIBDIR)/camlp4\"" >> odyl_config.ml clean:: rm -f *.cm* *.pp[io] *.o *.bak .*.bak *.out *.opt *.a @@ -49,8 +49,8 @@ promote: compare: install: - -$(MKDIR) $(LIBDIR) $(BINDIR) - cp odyl.cmo odyl.cma $(LIBDIR) + -$(MKDIR) $(LIBDIR)/camlp4 $(BINDIR) + cp odyl.cmo odyl.cma $(LIBDIR)/camlp4/. cp odyl$(EXE) $(BINDIR)/. include .depend diff --git a/camlp4/top/Makefile b/camlp4/top/Makefile index 778bb4ddf..d2af76ac1 100644 --- a/camlp4/top/Makefile +++ b/camlp4/top/Makefile @@ -41,7 +41,7 @@ depend: get_promote: install: - -$(MKDIR) $(LIBDIR) - cp $(TARGET) $(LIBDIR)/. + -$(MKDIR) $(LIBDIR)/camlp4 + cp $(TARGET) $(LIBDIR)/camlp4/. include .depend diff --git a/configure b/configure index 6f3b50b08..880f88202 100755 --- a/configure +++ b/configure @@ -1205,7 +1205,7 @@ fi ( cd ../../camlp4/config -EXE=$exe ./configure_batch -bindir "$bindir" -libdir "$libdir/camlp4" -mandir "$mandir" -ocaml-top ../.. > /dev/null +EXE=$exe ./configure_batch -bindir "$bindir" -libdir "$libdir" -mandir "$mandir" -ocaml-top ../.. > /dev/null ) # Finish generated files