Re: why dpkg-buildpackage doesn't care my build targets in debian/rule
On Thu, May 21, 2015 at 02:30:58PM +0000, lumin wrote:
> I'm trying to package caffe as said [1] at debian-science@ .
> However I encountered a problem when writing debian/rules.
>
> I'd like to take over the whole build process, so I wrote:
>
> 32 override_dh_auto_build: build_cpuonly
> 33
> 34 build_cpuonly: config_cpuonly
> 35 $(shell debian/my/00-fix-caffe-include-path-debian.sh)
> 36 $(MAKE) -j4 all
> 37 $(MAKE) -j4 test
> 38 $(MAKE) runtest
> 39
> 40 config_cpuonly:
> 41 cp debian/my/Makefile.config.cpuonly Makefile.config
> 42
> 43 .PHONY: config_cpuonly build_cpuonly
I would try this instead:
override_dh_auto_build:
cp debian/my/Makefile.config.cpuonly Makefile.config
debian/my/00-fix-caffe-include-path-debian.sh
$(MAKE) -j4 all
$(MAKE) -j4 test
$(MAKE) runtest
Then, if it works, you can make it more complex until it stops working again.
Reply to: