Re: dh_make debian/rules clean target
In the debian/control file:
Build-Depends: autotools-dev
config.sub/config.guess-related stuff
-------------------------------------
In debian/rules (GNU makefile):
clean:
...
-rm -f config.sub config.guess
dh_clean
autotools:
-rm -f config.sub config.guess
ln -s /usr/share/misc/config.sub config.sub
ln -s /usr/share/misc/config.guess config.guess
configure-stamp: autotools
...
./configure $(CONFFLAGS)
...
i.e.: you build-depend on autotools-dev, remove config.sub and config.guess
in the clean target, and make sure to link them back before you need them.
This keep them out of the Debian diff, and updated to the best version for a
given build system.
There is more to proper support of autoconf, which is the proper selection
of architecture. But we have gone through that one already, and the code
snippets are different for 2.13 and 2.5x.
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
Reply to: