diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-03-14 12:23:13 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-03-14 12:23:13 +0100 |
| commit | 63fe3bafdd43c21987d90c299854dd0fa5ba1f2d (patch) | |
| tree | d0c3235668c67bf154b85fc3a7bb6917602db4aa /repo/www/Makefile | |
| parent | b4c9498a5ae11b3c3230317c5a5df0b332104eee (diff) | |
| download | memory-leaks-63fe3bafdd43c21987d90c299854dd0fa5ba1f2d.tar.xz | |
Update page list whenever folders changed
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: |
