[caffe-contrib] 08/362: rules: import former work
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Tue May 3 09:24:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository caffe-contrib.
commit fd2cf96dc0c0887ee3d6e7fa8006372db77e5109
Author: Zhou Mo <cdluminate at gmail.com>
Date: Thu Jul 9 01:36:37 2015 +0000
rules: import former work
---
debian/rules | 51 ++++++++++++++++++++++++++++++++++++++++++---------
1 file changed, 42 insertions(+), 9 deletions(-)
diff --git a/debian/rules b/debian/rules
index b5e3f65..d890fac 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,46 @@
#!/usr/bin/make -f
-# You must remove unused comment lines for the released package.
-#export DH_VERBOSE = 1
-#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
-#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export DH_VERBOSE = 1
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+RULES := debian/rules
+CONFIG := debian/config/Makefile.config
%:
- dh $@
+ dh $@ --parallel
+
+.PHONY: config rmconfig
+config:
+ cp $(CONFIG) ./
+rmconfig:
+ -rm Makefile.config
+
+override_dh_auto_clean: config
+ dh_auto_clean
+ $(RULES) rmconfig
+
+override_dh_auto_build: config
+ dh_auto_build -- all pycaffe distribute
+ $(RULES) rmconfig
+
+override_dh_auto_test: config
+ # if LD_LIBRARY_PATH was not set, the test programs will not work.
+ $(MAKE) test # should run with only 1 job ?
+ dh_auto_test -- runtest LD_LIBRARY_PATH=.build_release/lib/
+
+#binary-arch:
+#binary-indep:
-#override_dh_auto_configure:
-# dh_auto_configure -- \
-# -DCMAKE_LIBRARY_ARCHITECTURE="$(DEB_TARGET_MULTIARCH)"
+# Since the Distributed Binary Caffe can not play the best performance
+# of user's machines, it's good to provide a custom build target,
+# allowing users to build their local performance-optimized packages.
+.PHONY: custom
+custom:
+ # this custom target is inspired by openblas's rules.
+ if [ ! -e debian/custom/Makefile.config ]; then \
+ printf "E: please put your Makefile.config into debian/custom/\n"
+ fi
+ cp debian/custom/Makefile.config ./
+ dch --local='+custom' "Custom build on `uname -a`"
+ LANG=C $(RULES) TARGET=custom build runtest binary
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe-contrib.git
More information about the debian-science-commits
mailing list