[Pkg-octave-commit] [SCM] Debian packaging for octave-nan branch, master, updated. 00e9c8a40e02ca23d74b507c31c7f8c7c7b5e0e8

Sébastien Villemot sebastien.villemot at ens.fr
Tue Sep 27 22:10:27 UTC 2011


The following commit has been merged in the master branch:
commit 25b0cf2d4cb9788f37167ce25d9470e10c9f61ad
Author: Sébastien Villemot <sebastien.villemot at ens.fr>
Date:   Tue Sep 27 23:44:41 2011 +0200

    debian/rules:
     + use our own clean rule to make the package idempotent
     + do not include MATLAB build script in package

diff --git a/debian/rules b/debian/rules
index cc1bd1b..b0f1d66 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,3 +3,17 @@
 
 include /usr/share/cdbs/1/class/octave-pkg.mk
 
+# Do not use the clean target provided by the package: it will delete the
+# binary MATLAB MEX files, which we cannot regenerate, hence making the package
+# build not idempotent. Instead, use our own clean rule.
+DEB_MAKE_CLEAN_TARGET = dummy
+
+# Also clean test file and MATLAB build script (this script is automatically
+# copied from src/ to inst/ by Octave packaging system)
+clean::
+	rm -f src/*.o src/*.mex
+	rm -f test/debug.mat inst/make.m
+
+# Don't include MATLAB build script in the package
+clean-files::
+	find debian/ -name make.m | xargs rm

-- 
Debian packaging for octave-nan



More information about the Pkg-octave-commit mailing list