2 DISTVERSION = $(shell dpkg-parsechangelog | egrep '^Version: ' | sed 's/^Version: //' | sed 's/-.*//')
5 REQUIRES = unix str pcre netstring
6 COMMON_FLAGS = $(DEBUG_FLAGS) -pp camlp4o -package "$(REQUIRES)"
7 THREADS_FLAGS = -package threads -thread
9 OCAMLC = $(OCAMLFIND) ocamlc $(COMMON_FLAGS)
10 OCAMLOPT = $(OCAMLFIND) ocamlopt $(COMMON_FLAGS)
11 OCAMLDEP = $(OCAMLFIND) ocamldep $(COMMON_FLAGS)
15 $(shell $(OCAMLFIND) query -i-format unix) \
16 $(shell $(OCAMLFIND) query -i-format pcre) \
17 $(shell $(OCAMLFIND) query -i-format netstring)
21 DISTDIR = $(DISTNAME)-$(DISTVERSION)
23 INSTALL LICENSE README META.in Makefile Makefile.defs \