[SCM] ViennaCL packaging branch, master, updated. debian/1.2.0-1-23-gcc71e86
Michael Wild
themiwi at users.sourceforge.net
Wed May 30 06:53:55 UTC 2012
The following commit has been merged in the master branch:
commit 90ec80a5fc4cd6c7c8812c5384e141bbaa22f173
Author: Michael Wild <themiwi at users.sourceforge.net>
Date: Wed May 30 08:31:22 2012 +0200
Cleanup and comments in debian/rules
Signed-off-by: Michael Wild <themiwi at users.sourceforge.net>
diff --git a/debian/rules b/debian/rules
index 467385b..edc8369 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,13 +3,23 @@
# This has to be exported to make some magic below work.
export DH_OPTIONS
+
+# Utility to get a literal space in GNU Make
+space :=
+space +=
+
+# Ignore spurious editor backup files in orig tarball
export DH_ALWAYS_EXCLUDE
-clean: DH_ALWAYS_EXCLUDE += auxiliary/nmf/align1/el_wise_mul_div.cl~:auxiliary/nmf/align1/sub_wise.cl~:examples/tutorial/iterative-ublas.cpp~:viennacl/linalg/lanczos.hpp~
+override DH_ALWAYS_EXCLUDE := $(subst $(space),:,$(strip $(DH_ALWAYS_EXCLUDE) \
+ auxiliary/nmf/align1/el_wise_mul_div.cl~ \
+ auxiliary/nmf/align1/sub_wise.cl~ \
+ examples/tutorial/iterative-ublas.cpp~ \
+ viennacl/linalg/lanczos.hpp~ \
+ ))
-DEBDIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
-PKGDIR := $(dir $(abspath $(DEBDIR)))
BUILDDIR := obj-$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+# Catch-all rule
%:
dh $@
@@ -26,6 +36,7 @@ override_dh_auto_test: $(BUILDDIR)/test_compute_capability
echo '== SKIPPING TESTS BECAUSE NO OPENCL CAPABILITY FOUND ==' >&2; \
fi
+# Utility program to determine compute-capability of the build host
$(BUILDDIR)/test_compute_capability: debian/test_compute_capability.c
gcc -o $@ `dpkg-buildflags --get CFLAGS` \
`dpkg-buildflags --get LDFLAGS` $^ -lOpenCL
--
ViennaCL packaging
More information about the debian-science-commits
mailing list