From b1e6491f77421ae4623391a7f53af7f3e6c13f34 Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Mon, 6 Jul 2020 18:23:10 +0100 Subject: import website from previous repo --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7f642d6 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +.PHONY: all clean + +HTML_PAGES = $(patsubst src/%.html,build/%.html,$(shell find src -name '*.html')) +THRUST_PAGES = $(patsubst src/%.thrust,build/%.html,$(shell find src -name '*.thrust')) + +PAGES = $(HTML_PAGES) $(THRUST_PAGES) + +all: build/sitemap.xml $(PAGES) + +build/sitemap.xml: $(PAGES) + ./generate-sitemap $^ > $@ + +build/%.html: src/%.html + @mkdir -p $(@D) + cp $< $@ + +build/%.html: src/%.thrust templates/* thrust + @mkdir -p $(@D) + ./thrust $< > $@ + +clean: + rm -rf build + +dev: + find . | entr $(MAKE) -j -- cgit v1.2.3