help-make
[Top][All Lists]
Advanced

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

Re: soring of intput files


From: Paul Smith
Subject: Re: soring of intput files
Date: Wed, 19 Nov 2014 08:43:09 -0500

On Wed, 2014-11-19 at 08:58 +0100, Olaf Hering wrote:
> I wonder if make will sort files during expansion, or if it uses the
> readdir result as is without sorting the files. In other words, will the
> following example result in the very same content not matter how the
> files are layed out on disk?
> 
> 
> DOC_HTML := $(patsubst %.markdown,html/%.html,$(MARKDOWNSRC-y)) \
>             $(patsubst man/%.pod.1,html/man/%.1.html,$(MAN1SRC-y)) \
>             $(patsubst man/%.pod.5,html/man/%.5.html,$(MAN5SRC-y)) \
>             $(patsubst %.txt,html/%.txt,$(TXTSRC-y)) \
>             $(patsubst %,html/hypercall/%/index.html,$(DOC_ARCHES))

This won't sort files.  In fact, make doesn't even know that these ARE
files; they're just words to make.

You don't show how the values of the individual variables like
MARKDOWNSRC-y etc. are obtained, so we can't say anything about the
order of those values.  However whatever order they have will be
preserved by the above statement.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]