]> matita.cs.unibo.it Git - helm.git/commitdiff
added (placeholder) distribution stuff for matita
authorStefano Zacchiroli <zack@upsilon.cc>
Thu, 2 Feb 2006 10:47:22 +0000 (10:47 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Thu, 2 Feb 2006 10:47:22 +0000 (10:47 +0000)
helm/Makefile
helm/dist/AUTHORS [new file with mode: 0644]
helm/dist/COPYING [new file with mode: 0644]
helm/dist/INSTALL [new file with mode: 0644]
helm/dist/README [new file with mode: 0644]

index 5cb7556b6967997866bdf9ce1d28abb944129bd2..447a1874d8b77d4e9694f5680749ec25b31af263 100644 (file)
@@ -1,18 +1,32 @@
-DIRS = ocaml matita 
-# gTopLevel searchEngine mathql_test hxp
 
-DIRS_BYTE = $(patsubst %,%.byte,$(DIRS))
-DIRS_OPT = $(patsubst %,%.opt,$(DIRS))
-DIRS_CLEAN = $(patsubst %,%.clean,$(DIRS))
-all: byte
-byte: $(DIRS_BYTE)
-opt: $(DIRS_OPT)
-world: byte opt
-clean: $(DIRS_CLEAN)
-%.byte:
-       $(MAKE) -C $*/ all
-%.opt:
-       $(MAKE) -C $*/ opt
-%.clean:
-       $(MAKE) -C $*/ clean
-.PHONY: all byte opt world clean
+BASENAME = matita
+VERSION = 0.1.0
+
+NULL =
+DISTDIR = $(BASENAME)-$(VERSION)
+CLEAN_ON_DIST =                \
+       ocaml/license           \
+       $(NULL)
+EXTRA_DIST =                   \
+       dist/AUTHORS            \
+       dist/COPYING            \
+       dist/INSTALL            \
+       dist/README             \
+       dist/ChangeLog          \
+       $(NULL)
+
+dist: export mktarball
+distcheck: dist extract build
+
+export:
+       rm -rf $(DISTDIR)
+       mkdir $(DISTDIR)
+       svn export ocaml $(DISTDIR)/ocaml
+       svn export matita $(DISTDIR)/matita
+       (cd $(DISTDIR) && rm -f $(CLEAN_ON_DIST))
+
+mktarball:
+       tar cvzf $(DISTDIR).tar.gz $(DISTDIR)
+
+.PHONY: dist export mktarball distcheck extract build
+
diff --git a/helm/dist/AUTHORS b/helm/dist/AUTHORS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/helm/dist/COPYING b/helm/dist/COPYING
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/helm/dist/INSTALL b/helm/dist/INSTALL
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/helm/dist/README b/helm/dist/README
new file mode 100644 (file)
index 0000000..e69de29