diff options
Diffstat (limited to 'repo/www/Makefile')
| -rw-r--r-- | repo/www/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile index 7ae0e5e..2cf5f9c 100644 --- a/repo/www/Makefile +++ b/repo/www/Makefile @@ -1,16 +1,20 @@ TOP_DIR = ../.. OUT_DIR = $(TOP_DIR)/public +text_files = md org +text_patterns = $(foreach ext,$(text_files),'$(TOP_DIR)/**.$(ext)') +text_folders = $(sort $(dir $(shell git ls-files $(text_patterns)))) + all: site include deps.mk -deps.mk: make-deps.py +deps.mk: make-deps.py $(text_folders) python3 $< $(TOP_DIR) $(OUT_DIR) site: $(pages) -$(folders): +$(page_folders): mkdir -p $@ %.html: |
