public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
d34f9f57ab0856825ee12d9f29fcbf8f4d439c2f blob 994 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
PANDOC     := pandoc
INDEX      := index.md
BUILD_DIR  := build
SITE_DIR   := $(BUILD_DIR)/site
TARGET     := $(SITE_DIR)/index.html
DIST_FILE  := site.tar.gz
PAGES_DIR  := pages
MANPAGES   := $(BUILD_DIR)/man
PAGES      := $(wildcard $(PAGES_DIR)/*.md)
HTML_PAGES := $(patsubst $(PAGES_DIR)/%.md, $(SITE_DIR)/$(PAGES_DIR)/%.html, $(PAGES))

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

.PHONY: clean
clean:
	rm -rf $(BUILD_DIR)
	rm -f $(DIST_FILE)

.PHONY: dist
dist: $(DIST_FILE)

.PHONY: manpages
manpages: $(BUILD_DIR) $(MANPAGES)/oc.1

$(MANPAGES)/%.1: manpages/%.md
	$(PANDOC) -s -t man $< > $@

$(DIST_FILE): all
	tar -czf $(DIST_FILE) -C $(SITE_DIR) .

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

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

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

solving d34f9f5 ...
found d34f9f5 in http://lists.johnnyrichard.com/olang/20240312193924.108229-1-johnny@johnnyrichard.com/ ||
	http://lists.johnnyrichard.com/olang/20240313115107.361403-1-maria.dev456@gmail.com/ ||
	http://lists.johnnyrichard.com/olang/20240313123228.49394-1-fabio@fabiomaciel.com/
found 54561a1 in https://git.johnnyrichard.com/olang.git
preparing index
index prepared:
100644 54561a1617b44d5c9faad44c78c349bbdaa73d91	docs/Makefile

applying [1/3] http://lists.johnnyrichard.com/olang/20240312193924.108229-1-johnny@johnnyrichard.com/
diff --git a/docs/Makefile b/docs/Makefile
index 54561a1..d34f9f5 100644

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

skipping http://lists.johnnyrichard.com/olang/20240313115107.361403-1-maria.dev456@gmail.com/ for d34f9f5
skipping http://lists.johnnyrichard.com/olang/20240313123228.49394-1-fabio@fabiomaciel.com/ for d34f9f5
index at:
100644 d34f9f57ab0856825ee12d9f29fcbf8f4d439c2f	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