[zeromq-dev] Q: make[1]: *** No rule to make target `distdir'.

Kenneth Adam Miller kennethadammiller at gmail.com
Sat Aug 8 01:53:44 CEST 2015


Well, after some debugging, what I've found is that the Makefile generated
by automake has an incorrectly specified target.

build/msvc/Makefile:401 has the distdir target that you're are looking for,
and it get's correctly made-prior to failure. The makefile system tries to
build the distdir target twice. But the Makefile infrastructure doesn't see
that distdir should simply be one of the following:

marked a existenctial dependency; as in the timestamp is not checked. You
can do this with the syntax:

target: dependencies... | existential
    recipes...

Then in your existential it's usually a rule to call mkdir.

Or it can be marked with .phony/.PHONY

But I think the origin of the problem is in the makefile generation
infrastructure with automake-that has to be told so that the makefiles that
it generates will be correct.

On Fri, Aug 7, 2015 at 6:20 PM, Pieter Hintjens <ph at imatix.com> wrote:

> Ah... Sorry. It's make dist that fails.
> On 7 Aug 2015 21:11, "Kenneth Adam Miller" <kennethadammiller at gmail.com>
> wrote:
>
>> It's interesting that you got that. I made the edits to the two lines
>> that you mentioned, ran make again, and it ran to completion.
>>
>> What is the output of remake -x?
>>
>> On Fri, Aug 7, 2015 at 12:49 PM, Kenneth Adam Miller <
>> kennethadammiller at gmail.com> wrote:
>>
>>> Ok, I'm working on it.
>>>
>>> On Fri, Aug 7, 2015 at 12:25 PM, Pieter Hintjens <ph at imatix.com> wrote:
>>>
>>>> I didn't commit anything, it's really just the two lines I showed...
>>>> On 7 Aug 2015 15:56, "Kenneth Adam Miller" <kennethadammiller at gmail.com>
>>>> wrote:
>>>>
>>>>> Where can I checkout something to debug what you've got? I'll work on
>>>>> it for you.
>>>>>
>>>>> On Fri, Aug 7, 2015 at 4:29 AM, Pieter Hintjens <ph at imatix.com> wrote:
>>>>>
>>>>>> Hi guys,
>>>>>>
>>>>>> I'm trying to fix issue #1505 by adding Makefile.am into each builds/
>>>>>> subdirectory.
>>>>>>
>>>>>> This fails miserably with "make[1]: *** No rule to make target
>>>>>> `distdir'.  Stop." even on the simplest example.
>>>>>>
>>>>>> In libzmq/Makefile.am I added builds/cmake:
>>>>>>
>>>>>>     DIST_SUBDIRS = builds/msvc builds/cmake doc
>>>>>>
>>>>>> And in that directory I added Makefile.am:
>>>>>>
>>>>>>     EXTRA_DIST = Modules/FindAsciiDoc.cmake
>>>>>>
>>>>>> No matter what I try, I get this "No rule" error.
>>>>>>
>>>>>> Does anyone know how to fix this?
>>>>>>
>>>>>> Cheers
>>>>>> Pieter
>>>>>> _______________________________________________
>>>>>> zeromq-dev mailing list
>>>>>> zeromq-dev at lists.zeromq.org
>>>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> zeromq-dev mailing list
>>>>> zeromq-dev at lists.zeromq.org
>>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>>
>>>>>
>>>> _______________________________________________
>>>> zeromq-dev mailing list
>>>> zeromq-dev at lists.zeromq.org
>>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150807/b483d5a0/attachment.htm>


More information about the zeromq-dev mailing list