[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: why dpkg-buildpackage doesn't care my build targets in debian/rule



Hi,

I modified the debian/rules[1] according to 
Santiago and Jakub (thank you both!),
and tested again. The result was the same.

"dh build" works while "dpkg-buildpackage" doesn't.

[1] --------------- the whole debian/rules------------------------
  1 #!/usr/bin/make -f
  2 # See debhelper(7) (uncomment to enable)
  3 # output every command that modifies files on the build system.
  4 DH_VERBOSE = 1
  5 
  6 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
  7 DPKG_EXPORT_BUILDFLAGS = 1
  8 include /usr/share/dpkg/default.mk
  9 
 10 # main packaging script based on dh7 syntax
 11 %:
 12     dh $@ 
 13 
 14 # debmake generated override targets
 15 override_dh_auto_build:
 16     cp ./debian/my/Makefile.config.cpuonly ./Makefile.config
 17     debian/my/00-fix-caffe-include-path-debian.sh
 18     $(MAKE) all
 19     $(MAKE) test
 20     $(MAKE) runtest
---------------------end debian/rules------------------------------


Reply to: