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

Pieter Hintjens ph at imatix.com
Sun Aug 9 21:06:52 CEST 2015


Yay... that was it! :)

Awesome, thanks for the help, Kenneth.

On Sat, Aug 8, 2015 at 8:29 PM, Kenneth Adam Miller
<kennethadammiller at gmail.com> wrote:
> After reading over things a bit more, one thing I did notice was that
> distdir was a target in builds/msvc/ that succeeded but that the same was
> attempted on builds/cmake but that actually was the one that succeeded.
> After perusing builds/cmake myself, I could see that there's no makefile in
> there other than the makefile that was just created, Makefile.am with that
> one test line. So, I now think a line needs to be added somewhere to tell
> the autotools chain to derive the makefile for that directory.
>
> 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
>>
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list