[Pkg-ocaml-maint-commits] r5280 - /trunk/packages/jocaml/trunk/debian/rules

dogguy-guest at users.alioth.debian.org dogguy-guest at users.alioth.debian.org
Mon Mar 3 13:57:30 UTC 2008


Author: dogguy-guest
Date: Mon Mar  3 13:57:30 2008
New Revision: 5280

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=5280
Log:

verify existence of config/Makefile before cleaning


Modified:
    trunk/packages/jocaml/trunk/debian/rules

Modified: trunk/packages/jocaml/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/jocaml/trunk/debian/rules?rev=5280&op=diff
==============================================================================
--- trunk/packages/jocaml/trunk/debian/rules (original)
+++ trunk/packages/jocaml/trunk/debian/rules Mon Mar  3 13:57:30 2008
@@ -55,7 +55,9 @@
 	dh_testroot
 	$(RM) -rf build-indep-stamp build-arch-stamp myocamlbuild_config.ml _tags
 	$(RM) -f debian/jocaml.install debian/jocaml.dirs
-	$(MAKE) clean
+	if [ -f Makefile -a -f config/Makefile ]; then \
+		$(MAKE) clean;   \
+	fi
 	if test -d boot.debian; then \
                 $(RM) -r boot;       \
                 mv boot.debian boot; \
@@ -69,7 +71,7 @@
 	dh_installdirs 
 	$(MAKE) PREFIX=$(CURDIR)/debian/jocaml/usr LIBDIR=$(CURDIR)/debian/jocaml/usr/lib/jocaml/$(JOCAMLABI) install
 	chmod +x $(CURDIR)/debian/jocaml/usr/lib/jocaml/$(JOCAMLABI)/camlheader
-	find $(CURDIR)/debian/jocaml/ -type f -iname "*.ml" -exec rm -f '{}' '\;'
+	find $(CURDIR)/debian/jocaml/ -type f -iname "*.ml" -exec rm -f {} \;
 
 binary-common:
 	dh_testdir




More information about the Pkg-ocaml-maint-commits mailing list