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

Re: dh_make debian/rules clean target



Hi Martin,

martin f krafft wrote:
> dh_make puts this into the debian/rules clean target:
> 
>     -$(MAKE) distclean
>     -test -r /usr/share/misc/config.sub && \
>         cp -f /usr/share/misc/config.sub config.sub
>     -test -r /usr/share/misc/config.guess && \
>         cp -f /usr/share/misc/config.guess config.guess
> 
> first of all, am i right in assuming (empirically) that a leading
> hyphen causes make not to fail if the command exits with non-zero?

Yes.

> and second, what are these /usr/share/misc/config.* files, and why are
> they precopied to a package. i don't have those files on my system,
> and i noticed no problems. are they there to speed up the configure

Sure. WIth the - it doesn't fail.

> run by giving some answers that are global to the systems?

No.

config.sub and config.guess are files beloging to much ./configure
scripts helping them to determine the architecture compiling on/for.

Unfortunately, many upstream do not hold them up to date, so much of
them do not know architectures like s390....

SO, these files (belonging to package autotools-dev) are copied in the
package to actualize them to get the others architectures regognized.

apt-get install autotools-dev, and read the doczmentation.

If you really want that above to work you've to build-depend on
autotools-dev otherwise I suppose the buildd's will not find them and
not copy them...

Regards,

Rene

-- 
  .''`. Rene Engelhard -- Debian GNU/Linux Developer             
 : :' : http://www.debian.org | http://people.debian.org/~rene/ 
 `. `'  rene@debian.org | GnuPG-Key ID: 248AEB73
   `-   Fingerprint: 41FA F208 28D4 7CA5 19BB  7AD9 F859 90B0 248A EB73

Attachment: pgppV33wtC09h.pgp
Description: PGP signature


Reply to: