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

Re: generic debian/rules that creates directories



T o n g <mlist4suntong@yahoo.com> writes:

> Hi,
>
> Is it possible to have a generic debian/rules that creates directories? 
>
> The upstream Makefiles was not designed to install into $DESTDIR but 
> to /, so it assumes /usr/bin exists, while that creates problems for me:
>
>   install -s -m 755 autogb /export/build/zh-autoconvert/bld/zh-
> autoconvert-0.3.16/debian/tmp/usr/bin
>   install: cannot create regular file '/export/build/zh-autoconvert/bld/
> zh-autoconvert-0.3.16/debian/tmp/usr/bin': No such file or directory
>
> Is it possible to alter the following `debian/rules` file so that it 
> plays nicely with such upstream Makefiles? 

Yes. You want to use dh_installdirs(1). I suggest you read its manpage.
Mind you, you won't need to touch debian/rules for that.

-- 
|8]


Reply to: