Skip to content

Commit c1c6fb1

Browse files
committed
doc: add Makefile for rst2man
1 parent fdfba85 commit c1c6fb1

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed

doc/man/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SUBDIRS = man1 man5
2+
3+
.PHONY: all $(SUBDIRS)
4+
5+
all: $(SUBDIRS)
6+
7+
$(SUBDIRS):
8+
$(MAKE) -C $@ force

doc/man/man1/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SRCDIR = ../../txt
2+
SOURCES := $(SRCDIR)/clubak.txt \
3+
$(SRCDIR)/cluset.txt \
4+
$(SRCDIR)/clush.txt \
5+
$(SRCDIR)/nodeset.txt
6+
OBJECTS := $(SOURCES:$(SRCDIR)/%.txt=%.1)
7+
8+
%.1: ../../txt/%.txt
9+
rst2man -v $< $@
10+
11+
all: $(OBJECTS)
12+
13+
force: clean all
14+
15+
clean:
16+
@rm -v $(OBJECTS)

doc/man/man5/Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SRCDIR = ../../txt
2+
SOURCES := $(SRCDIR)/clush.conf.txt \
3+
$(SRCDIR)/groups.conf.txt
4+
OBJECTS := $(SOURCES:$(SRCDIR)/%.txt=%.5)
5+
6+
%.5: ../../txt/%.txt
7+
rst2man -v $< $@
8+
9+
all: $(OBJECTS)
10+
11+
force: clean all
12+
13+
clean:
14+
@rm -v $(OBJECTS)

0 commit comments

Comments
 (0)