https://gitorious.org/ocamlp3l/ocamlp3l_cvs.git
Revision 3fc4395688daa34775f00720d0821edc594ebfba authored by weis on 21 July 2005, 18:39:45 UTC, committed by weis on 21 July 2005, 18:39:45 UTC
1 parent 925cff9
Tip revision: 3fc4395688daa34775f00720d0821edc594ebfba authored by weis on 21 July 2005, 18:39:45 UTC
New version 2.0.
New version 2.0.
Tip revision: 3fc4395
makefile
#
# Top level makefile to build and install everything for OcamlP3L V1.9
#
OCAMLC=ocamlc
OCAMLOPT=ocamlopt
MKFILES=makefile makefile-model
#
# Modify the following variables according to the installation
# directory you choose
#
INSTALLDIR=/usr/local/ocamlp3l
###
# You should not have to modify anything below this line!
###
PERL = `which perl`
#
# We should get rid of PERL, and only use Ocaml to do this!
#
VERSION=1.9
VINSTALLDIR=$(INSTALLDIR)/$(VERSION)
BINSTALLDIR=$(INSTALLDIR)/bin
.PHONY: all install installopt installbin clean makefiles
all: makefiles
(ocamlc -v)
(cd ocamlp3l-vthread; ${MAKE} all PREFIX=$(VINSTALLDIR) MODEL=thread "OCAMLC=$(OCAMLC)" "OCAMLOPT=$(OCAMLOPT)")
(cd ocamlp3l-vprocess; ${MAKE} all PREFIX=$(VINSTALLDIR) MODEL=process "OCAMLC=$(OCAMLC)" "OCAMLOPT=$(OCAMLOPT)")
install: installbin
if [ ! -d $(VINSTALLDIR) ]; then mkdir -p $(VINSTALLDIR); fi
(cd ocamlp3l-vthread; ${MAKE} install PREFIX=$(VINSTALLDIR) MODEL=thread "OCAMLC=$(OCAMLC)" "OCAMLOPT=$(OCAMLOPT)")
(cd ocamlp3l-vprocess; ${MAKE} install PREFIX=$(VINSTALLDIR) MODEL=process "OCAMLC=$(OCAMLC)" "OCAMLOPT=$(OCAMLOPT)")
if [ ! -d $(BINSTALLDIR) ]; then mkdir -p $(BINSTALLDIR); fi
installopt: installbin
if [ ! -d $(VINSTALLDIR) ]; then mkdir -p $(VINSTALLDIR); fi
(cd ocamlp3l-vthread; ${MAKE} installopt PREFIX=$(VINSTALLDIR) MODEL=thread "OCAMLC=$(OCAMLC)" "OCAMLOPT=$(OCAMLOPT)")
(cd ocamlp3l-vprocess; ${MAKE} installopt PREFIX=$(VINSTALLDIR) MODEL=process "OCAMLC=$(OCAMLC)" "OCAMLOPT=$(OCAMLOPT)")
if [ ! -d $(BINSTALLDIR) ]; then mkdir -p $(BINSTALLDIR); fi
installbin: makefiles
if [ ! -d $(BINSTALLDIR) ]; then mkdir -p $(BINSTALLDIR); fi
cp ocamlp3lcc $(BINSTALLDIR)
(cd $(BINSTALLDIR); eval "$(PERL) -i -pe 's/###VERSION###/$(VERSION)/;s%###INSTALLDIR###%$(INSTALLDIR)%;s%###PERL###%$(PERL)%;' ocamlp3lcc"; chmod 755 ocamlp3lcc)
clean:
rm -rf ocamlp3l-vthread ocamlp3l-vprocess
makefiles:
for d in ocamlp3l-vthread ocamlp3l-vprocess; do if [ ! -d $$d ]; then mkdir $$d; fi;done
(cd ocamlp3l-vthread; for file in $(MKFILES); do if [ ! -L $$file ]; then ln -s ../Makefiles/$$file .; fi; done)
(cd ocamlp3l-vprocess; for file in $(MKFILES); do if [ ! -L $$file ]; then ln -s ../Makefiles/$$file .; fi; done)
Computing file changes ...