X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2FMakefile.in;h=b6b3bd0d7da7188fbd7f544083fb8d39618dd029;hb=ed207660b8a0fa34f1d34b9dbb41144c5be29e68;hp=e1cba430e7e9545875f7c5e7a651295bdb5b5923;hpb=f693e2de79c1a95422a5efd22acbcea5003eeaba;p=helm.git diff --git a/helm/ocaml/Makefile.in b/helm/ocaml/Makefile.in index e1cba430e..b6b3bd0d7 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,24 +10,20 @@ MODULES = \ logger \ getter \ cic \ - cic_annotations \ cic_proof_checking \ cic_unification \ cic_omdoc \ metadata \ tactics \ 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@ +OCAMLPATH = @OCAMLFIND_META_DIR@ METAS = $(MODULES:%=METAS/META.helm-%) -CWD=`pwd` all: metas $(MODULES:%=%.all) opt: metas $(MODULES:%=%.opt) @@ -44,12 +40,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-%) ; \ @@ -58,10 +57,8 @@ $(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)/$*\"" >> $@ + cp $< $@ && echo "directory=\"$(shell pwd)/$*\"" >> $@ .PHONY: .dep.dot .dep.dot: