diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-04-16 23:35:30 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-04-16 23:35:30 +0200 |
| commit | 72ed1b208d4fd148ea45e56f1d2b2378790f7d7d (patch) | |
| tree | bf5706b4051da416fab36952a86a31dd840adb39 /repo/www/Makefile | |
| parent | 2a1025d1538eecbae88aa48c6352ce5b0947e045 (diff) | |
| download | memory-leaks-72ed1b208d4fd148ea45e56f1d2b2378790f7d7d.tar.xz | |
Touch up web page titles
Still a few wrinkles to iron out, e.g. the toplevel page's <title>.
Diffstat (limited to 'repo/www/Makefile')
| -rw-r--r-- | repo/www/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/repo/www/Makefile b/repo/www/Makefile index fdc0112..3c5f813 100644 --- a/repo/www/Makefile +++ b/repo/www/Makefile @@ -1,6 +1,9 @@ TOP_DIR = ../.. OUT_DIR = $(TOP_DIR)/public TEXT_FILES = md org +# make does not care about unpaired single quotes (nor double quotes +# for that matter) but Emacs does. Shell out. +TITLE = $(shell echo "peniblec's memleaks") dirname = $(patsubst %/,%,$(dir $(1))) dirnames = $(sort $(call dirname,$(1))) @@ -31,13 +34,13 @@ site: $(pages) $(indices) $(call dirnames,$(pages) $(indices)): mkdir -p $@ -$(pages): - pandoc -s $< -o $@ +$(pages): $(OUT_DIR)/%.html: + pandoc -s $< -o $@ -T "$(TITLE)" -M title="$*" # ⚠ When tweaking this rule, check whether it still works for the # top-level index.html. $(indices): $(OUT_DIR)/%index.html: - ./generate-index.py $(site_tree) "$(patsubst %/,%,$*)" $@ + ./generate-index.py $(site_tree) "$(TITLE)" "$(patsubst %/,%,$*)" $@ clean: -rm $(dependencies) |
