Use docbook2man instead of docbook-to-man

This commit is contained in:
Laurent Vivier 2007-09-03 17:40:27 +00:00
parent 0fe8427c57
commit 82470e3801

View File

@ -2,6 +2,8 @@
# (c) 2005 Laurent Vivier <Laurent@lvivier.info> # (c) 2005 Laurent Vivier <Laurent@lvivier.info>
# #
DOCBOOK2MAN = docbook2man
OBJS = $(patsubst %.sgml,%.8.gz,$(patsubst %.S,%.o,$(SOURCES:.c=.o))) OBJS = $(patsubst %.sgml,%.8.gz,$(patsubst %.S,%.o,$(SOURCES:.c=.o)))
MODULE ?= $(shell basename $(TOP)) MODULE ?= $(shell basename $(TOP))
@ -11,7 +13,7 @@ DISTFILES ?= $(SOURCES) $(HEADERS) Makefile
$(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o))) $(LIBRARY): $(LIBRARY)($(patsubst %.S,%.o,$(SOURCES:.c=.o)))
%.8: %.sgml %.8: %.sgml
docbook-to-man $< > $@ $(DOCBOOK2MAN) $< > $@
%.8.gz: %.8 %.8.gz: %.8
gzip -9c $< > $@ gzip -9c $< > $@