public inbox for ~johnnyrichard/olang-devel@lists.sr.ht
 help / color / mirror / code / Atom feed
f069ff120f9d486686dad77f8e3280f75c625ff0 blob 906 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
42
43
44
45
46
47
48
49
 
PANDOC     := pandoc
INDEX      := index.html
BUILD_DIR  := build
SITE_DIR   := $(BUILD_DIR)/site
TARGET     := $(SITE_DIR)/index.html
DIST_FILE  := site.tar.gz
STYLE      := style.css
MANPAGES   := $(BUILD_DIR)/man

.PHONY: all
all:  $(BUILD_DIR) $(STYLE) $(TARGET) manpages manual

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

.PHONY: dist
dist: $(DIST_FILE)

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

.PHONY: manual
manual: $(SITE_DIR)/manual/index.html


$(MANPAGES)/%.1: manpages/%.1
	@cp $< $@

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

$(TARGET): index.html
	@cp $(INDEX) $(TARGET)

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

$(STYLE): $(BUILD_DIR)
	cp style.css $(SITE_DIR)

$(SITE_DIR)/manual/index.html: info/*.texi
	make -C info
	rm -rf $(SITE_DIR)/manual
	mv info/html $(SITE_DIR)/manual
debug log:

solving f069ff1 ...
found f069ff1 in https://git.johnnyrichard.com/olang.git

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