Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to build a .deb package for libRocket (, but the build script is not in the source root but rather in a subfolder (/Build). See the Github source:

I can build it fine, using:

cd Build

I have tried debianising the project using dh_make but can't seem to figure out how to get it to look in the Build folder for a CMakeLists.txt file.

share|improve this question
The options go after the $@: dh $@ --buildsystem=cmake --sourcedirectory=Build – Stuart May 24 '15 at 20:24

The debian/rules file is the script that runs the build process. You can tell it that the build script is in a sub folder by passing --sourcedirectory=Build So your's might look like:

#!/usr/bin/make -f

    dh $@ --buildsystem=cmake --sourcedirectory=Build

See the manpage for the dh command Manpage icon for more information.

share|improve this answer
Thanks, you got me going in the right direction, the manpage link is invalid, but "man dh" got me what I needed. Also, there is no need for the / before Build. – robvdl Jul 23 '12 at 21:59
Great. Fixed above. – andrewsomething Jul 24 '12 at 16:18
@robvdl , Could accept this answer if it works for you. See – Sneetsher Jan 16 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.