- diff -u .orig-manifest .check-manifest; \
- rm -f .orig-manifest .check-manifest
-
-.PHONY: depend dist check-manifest
\ No newline at end of file
+ diff -u .orig-manifest .check-manifest; rv=$$?; \
+ rm -f .orig-manifest .check-manifest; \
+ exit $$rv
+
+# Debian packages.
+
+dpkg:
+ @if [ 0 != `cvs -q update | wc -l` ]; then \
+ 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.
+
+html: html/index.html
+
+html/index.html: $(wildcard *.ml) $(wildcard *.mli) $(wildcard wrappers/*.ml)
+ rm -rf html
+ mkdir html
+ -$(OCAMLDOC) $(OCAMLDOCFLAGS) -d html $^
+
+.PHONY: depend dist check-manifest html dpkg
\ No newline at end of file