Lines 1-21
Link Here
|
1 |
--- Makefile.orig Thu Apr 18 16:39:26 2002 |
1 |
--- Makefile.orig Thu Apr 18 16:39:26 2002 |
2 |
+++ Makefile Tue Aug 1 12:53:14 2006 |
2 |
+++ Makefile Tue Aug 1 12:53:14 2006 |
3 |
@@ -1,10 +1,12 @@ |
3 |
@@ -1,10 +1,10 @@ |
4 |
#Adjust this directory for installation |
4 |
#Adjust this directory for installation |
5 |
-LIBDIR=`ocamlc -where` |
5 |
-LIBDIR=`ocamlc -where` |
6 |
+LIBDIR=$(LOCALBASE)/lib/ocaml/site-lib/classes |
6 |
+LIBDIR=$(PREFIX)/lib/ocaml/site-lib/classes |
7 |
+DISTDIR=$(PREFIX)/lib/ocaml/site-lib/classes |
|
|
8 |
COMPILER=ocamlc -c |
7 |
COMPILER=ocamlc -c |
9 |
LIBRARIAN=ocamlc -a |
8 |
LIBRARIAN=ocamlc -a |
10 |
OPTCOMP=ocamlopt -c |
9 |
OPTCOMP=ocamlopt -c |
11 |
OPTLIB=ocamlopt -a |
10 |
OPTLIB=ocamlopt -a |
12 |
-INSTALL=cp |
11 |
-INSTALL=cp |
13 |
+INSTALL=install -o root -g wheel -m 644 |
12 |
+INSTALL?=install -o root -g wheel -m 644 |
14 |
+INSTALLDIR=install -d -o root -g wheel -m 755 |
|
|
15 |
|
13 |
|
16 |
OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \ |
14 |
OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \ |
17 |
omap.cmo oset.cmo ostream.cmo omapping.cmo |
15 |
omap.cmo oset.cmo ostream.cmo omapping.cmo |
18 |
@@ -16,13 +18,13 @@ |
16 |
@@ -16,13 +16,13 @@ |
19 |
.SUFFIXES: .ml .mli .cmo .cmi .cmx |
17 |
.SUFFIXES: .ml .mli .cmo .cmi .cmx |
20 |
|
18 |
|
21 |
.ml.cmo: |
19 |
.ml.cmo: |
Lines 32-49
Link Here
|
32 |
|
30 |
|
33 |
all: stdclass.cma |
31 |
all: stdclass.cma |
34 |
opt: stdclass.cmxa |
32 |
opt: stdclass.cmxa |
35 |
@@ -43,12 +45,15 @@ |
33 |
@@ -43,12 +43,15 @@ |
36 |
@$(MAKE) real-install LIBDIR=$(LIBDIR) |
34 |
@$(MAKE) real-install LIBDIR=$(LIBDIR) |
37 |
|
35 |
|
38 |
real-install: |
36 |
real-install: |
39 |
- $(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR) |
37 |
- $(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR) |
40 |
+ $(INSTALLDIR) $(DISTDIR) |
38 |
+ mkdir -p $(DESTDIR)$(LIBDIR) |
41 |
+ $(INSTALL) stdclass.cma *.cmi *.mli $(DISTDIR) |
39 |
+ $(INSTALL) stdclass.cma *.cmi *.mli $(DESTDIR)$(LIBDIR) |
42 |
if test -f stdclass.cmxa; \ |
40 |
if test -f stdclass.cmxa; \ |
43 |
- then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi |
41 |
- then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi |
44 |
+ then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(DISTDIR); fi |
42 |
+ then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(DESTDIR)$(LIBDIR); fi |
45 |
+ if test -f META; \ |
43 |
+ if test -f META; \ |
46 |
+ then $(INSTALL) META $(DISTDIR); fi |
44 |
+ then $(INSTALL) META $(DESTDIR)$(LIBDIR); fi |
47 |
|
45 |
|
48 |
clean: |
46 |
clean: |
49 |
- rm -f *.cm* *.o *.a *~ #* |
47 |
- rm -f *.cm* *.o *.a *~ #* |