Skip to content

Commit

Permalink
Added calls to ranlib (PR#2944)
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/version/3.08@6565 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
Michel Mauny authored and Michel Mauny committed Jul 28, 2004
1 parent a1d2a41 commit 1b157fb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
11 changes: 9 additions & 2 deletions camlp4/camlp4/Makefile
Expand Up @@ -75,8 +75,15 @@ install:
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/.
for f in camlp4.$(A) camlp4.p.$(A) camlp4.cmxa camlp4.p.cmxa; do \
test -f $$f && cp $$f "$(LIBDIR)/camlp4/." || true; \
for f in camlp4.$(A) camlp4.p.$(A) ; do \
if test -f $$f ; then \
cp $$f "$(LIBDIR)/camlp4/." && ( cd "$(LIBDIR)/camlp4/." && $(RANLIB) $$f ) ; \
fi ; \
done
for f in camlp4.cmxa camlp4.p.cmxa ; do \
if test -f $$f ; then \
cp $$f "$(LIBDIR)/camlp4/." ; \
fi ; \
done

include .depend
1 change: 1 addition & 0 deletions camlp4/config/configure_batch
Expand Up @@ -70,6 +70,7 @@ echo "O=o" >> Makefile.cnf
echo "A=a" >> Makefile.cnf
echo "OPT=" >> Makefile.cnf
echo "OTOP=$ocaml_top" >> Makefile.cnf
grep '^RANLIB' ../../config/Makefile >> Makefile.cnf

if test "$ocaml_top" = "../ocaml_stuff"; then
if ocamlc -v >/dev/null 2>&1; then
Expand Down
4 changes: 3 additions & 1 deletion camlp4/lib/Makefile
Expand Up @@ -53,6 +53,8 @@ installopt:
done
# Special treatment for this one: some versions of make don't like $(A) in $(TARGET:.cma=.$(A))
target="`echo $(TARGET) | sed -e 's/\.cma$$/.$(A)/'`" ; \
test -f $$target && cp $$target "$(LIBDIR)/camlp4/." || true
if test -f $$target ; then \
cp $$target "$(LIBDIR)/camlp4/." && ( cd "$(LIBDIR)/camlp4/." && $(RANLIB) $$target ) \
fi

include .depend
11 changes: 9 additions & 2 deletions camlp4/odyl/Makefile
Expand Up @@ -68,8 +68,15 @@ compare:
install:
-$(MKDIR) "$(LIBDIR)/camlp4" "$(BINDIR)"
cp odyl.cmo odyl.cma odyl_main.cmi $(LIBDIR)/camlp4/.
for f in odyl.$(A) odyl.p.$(A) odyl.cmx odyl.o odyl.p.cmx odyl.p.o odyl.cmxa odyl.p.cmxa ; do \
test -f $$f && cp $$f "$(LIBDIR)/camlp4/." || true; \
for f in odyl.$(A) odyl.p.$(A) ; do \
if test -f $$f ; then \
cp $$f "$(LIBDIR)/camlp4/." && ( cd "$(LIBDIR)/camlp4/." && $(RANLIB) $$f ) ; \
fi ; \
done
for f in odyl.cmx odyl.o odyl.p.cmx odyl.p.o odyl.cmxa odyl.p.cmxa ; do \
if test -f $$f ; then \
cp $$f "$(LIBDIR)/camlp4/." ; \
fi ; \
done

include .depend

0 comments on commit 1b157fb

Please sign in to comment.