From 66376d9f664b15e722459103d705470d15920a1b Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Thu, 20 Mar 2003 15:15:25 +0000 Subject: [PATCH] added distcheck target --- helm/uwobo/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/helm/uwobo/Makefile b/helm/uwobo/Makefile index 9af1575f9..8c59123e6 100644 --- a/helm/uwobo/Makefile +++ b/helm/uwobo/Makefile @@ -1,5 +1,6 @@ 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 @@ -55,8 +56,13 @@ dist: distclean depend 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 -- 2.39.2