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.


_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to