X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2FMakefile.in;h=00b5b0dd2b80d290c3ded9415d113a2ac3dd7334;hb=ab0954eab207a70e6ad5f2991cc117608deff55b;hp=af199d3b5b9b7379d63f7e2c9152a30187413b41;hpb=879797d6505bc39489009d9ae1e2506022bde9e2;p=helm.git diff --git a/helm/ocaml/Makefile.in b/helm/ocaml/Makefile.in index af199d3b5..00b5b0dd2 100644 --- a/helm/ocaml/Makefile.in +++ b/helm/ocaml/Makefile.in @@ -1,7 +1,7 @@ # Warning: the modules must be in compilation order +NULL = MODULES = \ xml \ - pxp \ registry \ utf8_macros \ thread \ @@ -10,25 +10,22 @@ MODULES = \ logger \ getter \ cic \ - cic_annotations \ cic_proof_checking \ cic_unification \ cic_omdoc \ metadata \ tactics \ - cic_notation \ cic_transformations \ + cic_notation \ cic_textual_parser2 \ - mathql \ - mathql_interpreter \ - mathql_generator \ - hbugs + $(NULL) OCAMLFIND_DEST_DIR = @OCAMLFIND_DEST_DIR@ OCAMLFIND_META_DIR = @OCAMLFIND_META_DIR@ METAS = $(MODULES:%=METAS/META.helm-%) -CWD=`pwd` +CWD := $(shell pwd) +OCAMLPATH = $(CWD)/METAS/ all: metas $(MODULES:%=%.all) opt: metas $(MODULES:%=%.opt) @@ -45,12 +42,15 @@ distclean: clean clean_metas .PHONY: all opt world metas depend install uninstall clean clean_metas distclean -$(MODULES:%=%.all): - export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all -$(MODULES:%=%.opt): - export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.opt=%) && make opt -$(MODULES:%=%.depend): - export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.depend=%) && make depend +%.all: + OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* all +%.opt: + OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* opt +%.clean: + OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* clean +%.depend: + OCAMLPATH=$(OCAMLPATH):$$OCAMLPATH $(MAKE) -C $* depend + $(MODULES:%=%.install): cd $(@:%.install=%) && make install export TARGET=$(OCAMLFIND_META_DIR)/$(@:%.install=META.helm-%) ; \ @@ -59,8 +59,6 @@ $(MODULES:%=%.install): $(MODULES:%=%.uninstall): cd $(@:%.uninstall=%) && make uninstall rm -f $(OCAMLFIND_META_DIR)/$(@:%.uninstall=META.helm-%) -$(MODULES:%=%.clean): - cd $(@:%.clean=%) && make clean METAS/META.helm-%: METAS/meta.helm-%.src cp $< $@ && echo "directory=\"$(CWD)/$*\"" >> $@