backup:
cd ..; tar cvzf $(PACKAGE)_$(shell date +%s).tar.gz $(PACKAGE)
-.PHONY: all opt world backup depend install uninstall clean
+ocamlinit:
+ echo "#use \"topfind\";;" > .ocamlinit
+ echo "#thread;;" >> .ocamlinit
+ for p in $(REQUIRES); do echo "#require \"$$p\";;" >> .ocamlinit; done
+ echo "#load \"$(PACKAGE).cma\";;" >> .ocamlinit
+
+.PHONY: all opt world backup depend install uninstall clean ocamlinit
ifneq ($(MAKECMDGOALS), depend)
include .depend
all: metas $(MODULES:%=%.all)
opt: metas $(MODULES:%=%.opt)
+world: all opt
metas: $(METAS)
depend: $(MODULES:%=%.depend)
install: $(MODULES:%=%.install)
clean: $(MODULES:%=%.clean)
clean_metas:
rm -f $(METAS)
-
distclean: clean clean_metas
rm -f Makefile Makefile.common configure config.log config.cache config.status
+.PHONY: all opt world metas depend install uninstall clean clean_metas distclean
+
$(MODULES:%=%.all):
export OCAMLPATH=$(CWD):$$OCAMLPATH ; cd $(@:%.all=%) && make all
$(MODULES:%=%.opt):