public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
059542b1546696d936e4da029b878e96999d2d94 blob 630 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
PANDOC     := pandoc
INDEX      := index.md
BUILD_DIR  := build
TARGET     := $(BUILD_DIR)/index.html
PAGES_DIR  := pages
PAGES      := $(wildcard $(PAGES_DIR)/*.md)
HTML_PAGES := $(patsubst $(PAGES_DIR)/%.md, $(BUILD_DIR)/$(PAGES_DIR)/%.html, $(PAGES))

.PHONY: all
all:  $(BUILD_DIR) $(TARGET) $(PAGES)

.PHONY: clean
clean:
	rm -rf build/

$(TARGET): $(HTML_PAGES)
	$(PANDOC) -s --template template.html -f markdown -t html $(INDEX) > $(TARGET)

$(BUILD_DIR):
	@mkdir -p $@
	@mkdir -p $@/$(PAGES_DIR)

$(BUILD_DIR)/$(PAGES_DIR)/%.html: $(PAGES_DIR)/%.md
	$(PANDOC) -s --template template.html -f markdown -t html --toc $< > $@
debug log:

solving 059542b ...
found 059542b in http://lists.johnnyrichard.com/olang/20240217184026.3363538-1-carlos@maniero.me/
found e5b7154 in https://git.johnnyrichard.com/olang.git
preparing index
index prepared:
100644 e5b7154d3b7d2afd7b6f0cc0ecb97548b61b9cad	docs/Makefile

applying [1/1] http://lists.johnnyrichard.com/olang/20240217184026.3363538-1-carlos@maniero.me/
diff --git a/docs/Makefile b/docs/Makefile
index e5b7154..059542b 100644

Checking patch docs/Makefile...
Applied patch docs/Makefile cleanly.

index at:
100644 059542b1546696d936e4da029b878e96999d2d94	docs/Makefile

Code repositories for project(s) associated with this public inbox

	https://git.johnnyrichard.com/olang.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox