commit edd12ca03bc129c4e12dc706dda5aa1df86f931d parent e17ad68625b6f2bf0579785322b11b2f2fb1e411 Author: Kévin Le Gouguec <kevin.legouguec@gmail.com> Date: Thu, 26 Nov 2020 00:40:06 +0100 Add Makefile for CI Diffstat:
| A | Makefile | | | 18 | ++++++++++++++++++ |
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -0,0 +1,18 @@ +pages = $(wildcard *.html) +sheets = $(wildcard *.css) +targets = $(foreach f,$(pages) $(sheets),public/$(f)) + +.PHONY: all clean site + +all: site + +site: $(targets) + +public: + mkdir $@ + +$(targets): public/%: % | public + cp $< $@ + +clean: + rm -r public