'make dpkg' seems to work.
authorrich <rich>
Sat, 8 Nov 2003 11:52:03 +0000 (11:52 +0000)
committerrich <rich>
Sat, 8 Nov 2003 11:52:03 +0000 (11:52 +0000)
Makefile

index bf2c3ae..fb966ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Interface to Perl from OCaml.
 # Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.17 2003-11-08 11:36:19 rich Exp $
+# $Id: Makefile,v 1.18 2003-11-08 11:52:03 rich Exp $
 
 include Makefile.config
 
@@ -154,6 +154,19 @@ dpkg:
        echo Please commit all changes to CVS first.; \
        exit 1; \
        fi
+       $(MAKE) dist
+       rm -rf /tmp/dbuild
+       mkdir /tmp/dbuild
+       cp $(PACKAGE)-$(VERSION).tar.gz \
+         /tmp/dbuild/$(PACKAGE)_$(VERSION).orig.tar.gz
+       export CVSROOT=`cat CVS/Root`; \
+         cd /tmp/dbuild && \
+         cvs export \
+         -d $(PACKAGE)-$(VERSION) \
+         -D now merjis/test/perl4caml
+       cd /tmp/dbuild/$(PACKAGE)-$(VERSION) && dpkg-buildpackage -rfakeroot
+       rm -rf /tmp/dbuild/$(PACKAGE)-$(VERSION)
+       ls -l /tmp/dbuild
 
 # Documentation.