X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=Makefile;h=e852966c6e9a5a6c1f691e4ae82e10dd47d65b53;hb=eeb3c50796f2f080bf2ba2d0787e43395f436392;hp=079aef112654529c25402c84172e4609fa7cb3fc;hpb=fae1d1e9b2ea4b5f7995063ccb792298f1974afc;p=perl4caml.git diff --git a/Makefile b/Makefile index 079aef1..e852966 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Interface to Perl from OCaml. # Copyright (C) 2003 Merjis Ltd. -# $Id: Makefile,v 1.13 2003-10-26 10:20:19 rich Exp $ +# $Id: Makefile,v 1.14 2003-11-02 13:28:38 rich Exp $ include Makefile.config @@ -25,7 +25,7 @@ SED := sed # XXX Hack required by ocamlopt, and sometimes ocamlc. # To work out what this should be, try: -# `shell perl -MExtUtils::Embed -e ldopts' +# `perl -MExtUtils::Embed -e ldopts' DYNALOADER_HACK := /usr/lib/perl/5.8.1/auto/DynaLoader/DynaLoader.a OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS) @@ -117,13 +117,14 @@ depend: .depend # Install. install: - rm -rf $(OCAMLLIBDIR)/perl - install -c -m 0755 -d $(OCAMLLIBDIR)/perl - install -c -m 0755 -d $(OCAMLLIBDIR)/stublibs + rm -rf $(DESTDIR)$(OCAMLLIBDIR)/perl + install -c -m 0755 -d $(DESTDIR)$(OCAMLLIBDIR)/perl + install -c -m 0755 -d $(DESTDIR)$(OCAMLLIBDIR)/stublibs install -c -m 0644 perl.cmi perl.mli perl4caml.cma perl4caml.cmxa \ perl4caml.a libperl4caml.a META \ - $(WRAPPERS:.cmo=.ml) $(WRAPPERS:.cmo=.cmi) $(OCAMLLIBDIR)/perl - install -c -m 0644 dllperl4caml.so $(OCAMLLIBDIR)/stublibs + $(WRAPPERS:.cmo=.ml) $(WRAPPERS:.cmo=.cmi) \ + $(DESTDIR)$(OCAMLLIBDIR)/perl + install -c -m 0644 dllperl4caml.so $(DESTDIR)$(OCAMLLIBDIR)/stublibs # Distribution.