Hi mentors, I solved this problem, after line-by-line reviewing the screen output of those commands.
It turns out that, the "clean" target of Makefile needs the Makefile.config too. this rules file makes dpkg-buildpackage continue building. (I deleted some comments ) ------------------------------------------- #!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk %: dh $@ override_dh_auto_clean: cp ./debian/my/Makefile.config.cpuonly ./Makefile.config dh_auto_clean # without following line the the source tree # would be not clean. Hence dpkg-buildpackage # refuse to build. rm Makefile.config override_dh_auto_build: # well. let's copy config back again. cp ./debian/my/Makefile.config.cpuonly ./Makefile.config debian/my/00-fix-caffe-include-path-debian.sh $(MAKE) all $(MAKE) test $(MAKE) runtest ------------------------------------- > It's hard to tell what went wrong without seeing complete d/rules, or at > least complete build log. I guess the bug lies in the part of > debian/rules you snipped. Thank you Jakub for the hint. However my snipped part of rules was fine, the problem is, I didn't notice the need of "Make clean" for a Makefile.config. Therefore dpkg-buildpackage aborted at dpkg-buildpackage: host architecture amd64 dpkg-source --before-build caffe-20150521~rc2 fakeroot debian/rules clean dh clean <--- currently no Makefile.config, abort. rather than dh build. -- Regards, C.D.Luminate -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1432269094.2378.17.ca...@gmail.com