From f5d10dd114d0918f347c539d6249e8d5a0834762 Mon Sep 17 00:00:00 2001 From: Aaron O'Leary Date: Sun, 21 Dec 2014 21:46:13 +0000 Subject: [PATCH] make: exclude README.md from html creation. Uses the filter-out Make text function "Returns all whitespace-separated words in text that do not match any of the pattern words, removing the words that do match one or more." http://www.gnu.org/software/make/manual/make.html#Text-Functions --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index badebe2..649a50e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ # Files. -SRC_PAGES = $(wildcard *.md) +MARKDOWN = $(wildcard *.md) +EXCLUDES = README.md +SRC_PAGES = $(filter-out $(EXCLUDES), $(MARKDOWN)) DST_PAGES = $(patsubst %.md,%.html,$(SRC_PAGES)) # Inclusions. -- GitLab