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)