VERSION = 0.2.0
DISTDIR = uwobo-$(VERSION)
+DISTTARBALL = $(DISTDIR).tar.gz
REQUIRES = http gdome2 gdome2-xslt pcre unix
COMMONOPTS = -package "$(REQUIRES)" -pp camlp4o
OCAMLFIND = ocamlfind
uwobo.ml \
Makefile .depend \
$(DISTDIR)/
- tar cvzf $(DISTDIR).tar.gz $(DISTDIR)/
+ tar cvzf $(DISTTARBALL) $(DISTDIR)/
rm -rf $(DISTDIR)/
+distcheck: $(DISTTARBALL)
+ if [ -d $(DISTDIR) ]; then rm -rf $(DISTDIR); else true; fi
+ tar xvzf $<
+ cd $(DISTDIR); make
+ rm -rf $(DISTDIR)
-.PHONY: all byte opt world depend clean
+.PHONY: all dist distclean distcheck byte opt world depend clean