On 03/29/2010 07:22 AM, Reuben Thomas wrote:
> I have two questions:
> 
> 1. Is it expected that "make dist" should work without a preceding
> "make"? i.e. is this really a bug?

The GNU Coding Standards requires 'make' before 'make dist', so it is
not technically a bug.  However, since 'make dist' is such a handy
shortcut compared to 'make && make dist', many packages go out of their
way to provide this additional guarantee above and beyond GCS.

> 
> 2. If so, then I have a further problem: if I simply make the file in
> question explicitly depend on zile$(EXEEXT), then zile is compiled by
> make dist, but cannot be linked because it needs ../lib/libgnu.a. How
> do I correctly make "make dist" build this?

Is your SUBDIRS list of subdirectories in Makefile.am in dependency
order?  For example, be sure that you list lib prior to src, if src
depends on lib being built.  You can also add an explicit '.' if that helps.

-- 
Eric Blake   [email protected]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to