VERSION = 0.2.1
NAME = http_getter
+
DISTDIR = http-getter-$(VERSION)
+EXTRA_DIST = AUTHORS COPYING NEWS README BUGS
+ # docs relative to "doc/" dir
+DOCS = \
+ http_getter.conf.xml.sample
+
REQUIRES = http dbm pcre netclient pxp shell threads zip
COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
OCAMLFIND = ocamlfind
dist: distclean depend
if [ -d $(DISTDIR) ]; then rm -rf $(DISTDIR); else true; fi
mkdir $(DISTDIR)/
+ mkdir $(DISTDIR)/doc
+ cp $(DOCS) $(DISTDIR)/doc/
for m in $(patsubst %, %.mli, $(MODULES)); do \
if [ "$$m" != "http_getter_types.mli" ]; then \
cp $$m $(DISTDIR)/; \
$(NAME).ml \
Makefile Makefile.overrides .depend \
$(DISTDIR)/
+ cp $(EXTRA_DIST) $(DISTDIR)/
tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
rm -rf $(DISTDIR)/
distcheck: dist