From f5ad9b533aa8d46877bcf8788e549ca004aa2f41 Mon Sep 17 00:00:00 2001 From: Stephane Thiell Date: Wed, 27 Sep 2023 22:00:24 -0700 Subject: [PATCH] doc: add Makefile for rst2man --- doc/man/Makefile | 8 ++++++++ doc/man/man1/Makefile | 16 ++++++++++++++++ doc/man/man5/Makefile | 14 ++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 doc/man/Makefile create mode 100644 doc/man/man1/Makefile create mode 100644 doc/man/man5/Makefile diff --git a/doc/man/Makefile b/doc/man/Makefile new file mode 100644 index 00000000..1b45a336 --- /dev/null +++ b/doc/man/Makefile @@ -0,0 +1,8 @@ +SUBDIRS = man1 man5 + +.PHONY: all $(SUBDIRS) + +all: $(SUBDIRS) + +$(SUBDIRS): + $(MAKE) -C $@ force diff --git a/doc/man/man1/Makefile b/doc/man/man1/Makefile new file mode 100644 index 00000000..9f6d824b --- /dev/null +++ b/doc/man/man1/Makefile @@ -0,0 +1,16 @@ +SRCDIR = ../../txt +SOURCES := $(SRCDIR)/clubak.txt \ + $(SRCDIR)/cluset.txt \ + $(SRCDIR)/clush.txt \ + $(SRCDIR)/nodeset.txt +OBJECTS := $(SOURCES:$(SRCDIR)/%.txt=%.1) + +%.1: ../../txt/%.txt + rst2man -v $< $@ + +all: $(OBJECTS) + +force: clean all + +clean: + @rm -v $(OBJECTS) diff --git a/doc/man/man5/Makefile b/doc/man/man5/Makefile new file mode 100644 index 00000000..4438b39e --- /dev/null +++ b/doc/man/man5/Makefile @@ -0,0 +1,14 @@ +SRCDIR = ../../txt +SOURCES := $(SRCDIR)/clush.conf.txt \ + $(SRCDIR)/groups.conf.txt +OBJECTS := $(SOURCES:$(SRCDIR)/%.txt=%.5) + +%.5: ../../txt/%.txt + rst2man -v $< $@ + +all: $(OBJECTS) + +force: clean all + +clean: + @rm -v $(OBJECTS)