From f19882e61a5352f3b890b73f8b31e939bd730eb9 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 15 Apr 2016 23:09:22 -0700 Subject: [PATCH] Sort General the same as everything else; automatically generate list. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c22173e71..5ab308b7d 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,14 @@ template_deps := package.json tools/template.js node_modules/lodash/package.json cat := node tools/cat.js cat_deps := tools/cat.js -parts := Config platform classes General Archive Filtering Images Linkification Menu Miscellaneous Monitoring Posting Quotelinks Main +capitalized = $(filter-out a,$(foreach x,$1,$(subst a $(x),,$(sort a $(x))))) + +parts := \ + Config platform classes \ + $(sort $(call capitalized, \ + $(subst src/,,$(wildcard src/*)) \ + )) \ + Main intermediate := LICENSE src/meta/fbegin.js tmp/declaration.js tmp/globals.js $(foreach p,$(parts),tmp/$(p).js) src/meta/fend.js