Commit d6b25e88 authored by gerd's avatar gerd

missing


git-svn-id: https://gps.dynxs.de/private/svn/app-plasma/trunk@247 55289a75-7b90-4627-9e07-ffb4263930b2
parent 5912a4e2
.PHONY: all install clean
open omake.conf
USE_OCAMLFIND = true
OCAMLPACKS[] =
rpc
netplex
netsys
shell
if $(not $(OCAMLFIND_EXISTS))
eprintln(This project requires ocamlfind, but is was not found.)
eprintln(You need to install ocamlfind and run "omake --configure".)
exit 1
NATIVE_ENABLED = $(OCAMLOPT_EXISTS)
BYTE_ENABLED = true
OCAMLFLAGS += -annot
OCAMLDEP_MODULES_ENABLED = false
if $(not $(defined OCAMLRPCGEN))
OCAMLRPCGEN = ocamlrpcgen
export
public.InterfaceDoc(name, files) =
protected.mlifiles = $(filter-exists $(addsuffix .mli, $(files)))
protected.cmifiles = $(addsuffix .cmi, $(removesuffix $(mlifiles)))
$(name).idoc: $(mlifiles) $(cmifiles)
ocamlfind ocamldoc -dump $(name).idoc -stars \
$(PREFIXED_OCAMLINCLUDES) -package "$(OCAMLPACKS)" \
$(mlifiles)
return $(name).idoc
.SUBDIRS: src
public.findlib_install(name) =
dir = src/$(name)
files[] =
$(glob $(dir)/*.cmi)
$(glob $(dir)/*.mli)
$(glob $(dir)/*.cma)
opt_files[] =
$(glob $(dir)/*.a)
$(glob $(dir)/*.cmxa)
$(glob $(dir)/*.so)
ocamlfind install $(name) \
$(dir)/META $(files) -optional $(opt_files)
install:
findlib_install(plasmaclient)
findlib_install(plasmasupport)
findlib_install(mr_platform)
findlib_install(mr_framework)
mkdir -p $(BINDIR)
cp src/pfs_admin/plasma_admin $(BINDIR)
cp src/pfs_admin/plasma_datanode_init $(BINDIR)
cp src/pfs_daemon/plasmad $(BINDIR)
cp src/pfs_nfs3/nfs3d $(BINDIR)
cp src/plasmaclient/plasma $(BINDIR)
mkdir -p $(SHAREDIR)
mkdir -p $(SHAREDIR)/ipc
cp ipc/*.x $(SHAREDIR)/ipc
mkdir -p $(SHAREDIR)/sql
cp sql/*.sql $(SHAREDIR)/sql
mkdir -p $(SHAREDIR)/clusterconfig
cp clusterconfig/inst_gen.conf $(SHAREDIR)/clusterconfig/inst.conf
cp -r clusterconfig/* $(SHAREDIR)/clusterconfig
commands[] =
plasmad
plasma
plasma_admin
plasma_datanode_init
nfs3d
.DEFAULT: clusterconfig/inst_gen.conf
clusterconfig/inst_gen.conf:
echo "# Generated file" > clusterconfig/inst_gen.conf
foreach(cmd, $(commands))
echo $(cmd)=\"$(BINDIR)/$(cmd)\" \
>> clusterconfig/inst_gen.conf
echo namenode_sql=\"$(SHAREDIR)/sql/namenode.sql\" \
>> clusterconfig/inst_gen.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment