Added 'make dist' rule.
authorrich <rich>
Mon, 22 Dec 2003 10:07:19 +0000 (10:07 +0000)
committerrich <rich>
Mon, 22 Dec 2003 10:07:19 +0000 (10:07 +0000)
.cvsignore
MANIFEST [new file with mode: 0644]
Makefile

index b6131c8..08380bc 100644 (file)
@@ -3,4 +3,5 @@
 *.cmo
 *.cmx
 *.cmxa
-test
\ No newline at end of file
+test
+ocaml-csv-*.tar.gz
\ No newline at end of file
diff --git a/MANIFEST b/MANIFEST
new file mode 100644 (file)
index 0000000..fc74999
--- /dev/null
+++ b/MANIFEST
@@ -0,0 +1,13 @@
+.cvsignore
+.depend
+Makefile
+MANIFEST
+csv.ml
+csv.mli
+test.ml
+testcsv1.csv
+testcsv2.csv
+testcsv3.csv
+testcsv4.csv
+testcsv5.csv
+testcsv6.csv
index 09f55b8..24445b2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
-# $Id: Makefile,v 1.1 2003-12-17 16:05:08 rich Exp $
+# $Id: Makefile,v 1.2 2003-12-22 10:07:19 rich Exp $
+
+PACKAGE                := ocaml-csv
+VERSION                := 1.0.1
 
 OCAMLC         := ocamlc
 OCAMLCINCS     :=
@@ -34,6 +37,8 @@ test: csv.cma test.ml
 .ml.cmx:
        $(OCAMLOPT) $(OCAMLOPTFLAGS) $(OCAMLOPTINCS) -c $<
 
+.SUFFIXES:     .cmo .cmi .cmx .ml .mli
+
 # Clean.
 
 clean:
@@ -51,4 +56,7 @@ ifeq ($(wildcard .depend),.depend)
 include .depend
 endif
 
-.SUFFIXES:     .cmo .cmi .cmx .ml .mli
+# Build a distribution.
+
+dist:
+       tar zcf $(PACKAGE)-$(VERSION).tar.gz `cat MANIFEST`
\ No newline at end of file