diff options
| -rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..abf07a9 --- /dev/null +++ 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 |
