Re: Seeking advice on a short rules-file
Hi,
Mats Erik Andersson <mats.andersson@gisladisker.se> writes:
> #!/usr/bin/make -f
>
> build:
> dh --before dh_auto_configure $@
> dh_auto_configure -- --prefix=/usr \
> --bindir=/usr/games \
> --mandir=/usr/share/man
> dh --remaining $@
>
> clean:
> dh clean
> [ ! -f Makefile ] || $(MAKE) distclean
>
> %:
> dh $@
Will this do the right thing if you call only the "binary" target
without calling the "build" target before?
If not, you can try using the "override_*" feature of debhelper (since
7.0.50~), see below.
I also think you can leave the "clean" target to debhelper as well:
dh_auto_clean should call make distclean for you.
Regards,
Ansgar
------
#! /usr/bin/make -f
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --bindir=/usr/games
(These two targets might be enough.)
Reply to: