Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (55 sloc) 1.676 kB
BYTE_ENABLED = true
NATIVE_ENABLED = true
USE_OCAMLFIND = true
OCAMLPACKS[] +=
camomile
num
str
threads
#zip_pack = $(shell ocamlfind list | grep "zip\ " | cut -d\ -f1)
#OCAMLPACKS[] += $(zip_pack)
OCAMLFLAGS += -thread
OCAMLCFLAGS += -g
OCAMLDEP_MODULES_ENABLED = false
OCAMLROOT = $(shell ocamlfind printconf destdir)
DOCROOT = /usr/share/doc/ocaml-batteries/
BROWSER_COMMAND = x-www-browser %s
NAME = batteries
VERSION = 1.0.0
LIBSDIR = $(ROOT)/libs
.PHONY: doc uninstall install all clean test reinstall install-doc release
.DEFAULT: all
clean:
rm -f $(filter-proper-targets $(ls R, .))
rm -f hdoc/*
BAT_FILES[] = battop.ml
.SUBDIRS: src testsuite
include OMakefile
export BAT_FILES
.SUBDIRS: libs
.SUBDIRS: estring
include OMakefile
export BAT_FILES
build/META: build/META.in
rm(-f build/META)
sed -e 's|@VERSION@|$(VERSION)|' \
build/META.in > build/META
chmod(444 build/META)
uninstall:
$(OCAMLFIND) remove $(NAME)
if $(test -e $(DOCROOT))
rm -rf $(DOCROOT)
install: all build/META
$(OCAMLFIND) install $(NAME) build/META $(BAT_FILES)
doc: src/batteries.cma
if $(not $(test -e hdoc/index.html))
$(OCAMLFIND) ocamldoc -package camomile -package threads.posix \
-sort -html -d hdoc -I src src/*.mli
install-doc: doc
$(INSTALL) -d $(DOCROOT)
$(INSTALL) hdoc/* $(DOCROOT)
$(INSTALL) doc/batteries/*.idex doc/batteries/*.help $(DOCROOT)
test: testsuite/main.opt testsuite/main.run
testsuite/main.opt && testsuite/main.run
release: :exists: ocaml-batteries-$(VERSION).tar.gz
git archive --format=tar --prefix=batteries-$(VERSION)/ HEAD | gzip > batteries-$(VERSION).tar.gz
Jump to Line
Something went wrong with that request. Please try again.