freebsd-ports/devel/ocaml-classes/files/patch-Makefile
Ying-Chieh Liao 055b5b0547 add ocaml-classes 3.05
Ocaml Object interface for ocaml's standard library modules

PR:		42677
Submitted by:	michaelgrunewald@yahoo.fr
2002-09-20 13:21:30 +00:00

33 lines
905 B
Text

--- Makefile.orig Thu Apr 18 20:39:26 2002
+++ Makefile Fri Sep 20 21:16:25 2002
@@ -1,10 +1,11 @@
#Adjust this directory for installation
-LIBDIR=`ocamlc -where`
+LIBDIR=$(PREFIX)/lib/ocaml/site-lib/classes
COMPILER=ocamlc -c
LIBRARIAN=ocamlc -a
OPTCOMP=ocamlopt -c
OPTLIB=ocamlopt -a
-INSTALL=cp
+INSTALL=install -o root -g wheel -m 644
+INSTALLDIR=install -d -o root -g wheel -m 755
OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \
omap.cmo oset.cmo ostream.cmo omapping.cmo
@@ -43,12 +44,15 @@
@$(MAKE) real-install LIBDIR=$(LIBDIR)
real-install:
+ $(INSTALLDIR) $(LIBDIR)
$(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR)
if test -f stdclass.cmxa; \
then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi
+ if test -f META; \
+ then $(INSTALL) META $(LIBDIR); fi
clean:
- rm -f *.cm* *.o *.a *~ #*
+ rm -f *.cm* *.o *.a *~
depend:
ocamldep *.ml *.mli > .depend