Right, thanks - I hadn't realised that rules is a makefile with '#!/bin/make -f' at the top to tell the shell to run it with make - clever!<div><br></div><div>To get it to build a debian package I had to do 'sudo debian/rules binary'.   Not sure why I had to be root, but it complained when I wasn't.</div>
<div><br></div><div>Thank you for the pointer.</div><div><br>Graham.<br><br><div class="gmail_quote">On 26 June 2011 15:17, John Smith <span dir="ltr"><<a href="mailto:deltafoxtrot256@gmail.com">deltafoxtrot256@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 27 June 2011 00:08, Graham Jones <<a href="mailto:grahamjones139@gmail.com">grahamjones139@gmail.com</a>> wrote:<br>

> Sorry for asking a dumb question, but how do you use the osm2pgsql source to<br>
> build a debian package?  I see a deban/rules file...but don't know what to<br>
> do with it - there doesn't seem to be a 'make deb' option or equivalent in<br>
> the makefile?<br>
<br>
</div>a simple way is to run ./debian/rules binary<br>
</blockquote></div><br><br clear="all"><br>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>