Sort HTML_DST output
authorDavid Mawdsley <david.mawdsley@manchester.ac.uk>
Tue, 8 Aug 2017 09:29:39 +0000 (10:29 +0100)
committerDavid Mawdsley <david.mawdsley@manchester.ac.uk>
Tue, 8 Aug 2017 09:29:39 +0000 (10:29 +0100)
Makefile

index 7e46acbb7f53c7c65c261e44bd1a4934b460ba4b..8dc2541bd0f7b73aa2543c968915c5231d961006 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,9 +75,9 @@ HTML_DST = \
   ${DST}/index.html \
   ${DST}/conduct/index.html \
   ${DST}/setup/index.html \
-  $(patsubst _episodes/%.md,${DST}/%/index.html,$(wildcard _episodes/*.md)) \
+  $(patsubst _episodes/%.md,${DST}/%/index.html,$(sort $(wildcard _episodes/*.md))) \
   ${DST}/reference/index.html \
-  $(patsubst _extras/%.md,${DST}/%/index.html,$(wildcard _extras/*.md)) \
+  $(patsubst _extras/%.md,${DST}/%/index.html,$(sort $(wildcard _extras/*.md))) \
   ${DST}/license/index.html
 
 ## lesson-md        : convert Rmarkdown files to markdown