2012-02-01 15:11:19 +04:00
|
|
|
-include ../Makefile.inc
|
2012-01-28 18:45:28 +04:00
|
|
|
|
|
|
|
ASCIIDOC := asciidoc
|
|
|
|
A2X := a2x
|
|
|
|
XMLTO := xmlto
|
|
|
|
|
2013-02-18 17:54:45 +04:00
|
|
|
SRC += crtools.txt
|
2012-02-01 15:07:30 +04:00
|
|
|
MANS := $(patsubst %.txt,%.1,$(SRC))
|
2012-01-28 18:45:28 +04:00
|
|
|
|
2012-02-01 15:07:30 +04:00
|
|
|
all: $(MANS)
|
2012-01-28 18:45:28 +04:00
|
|
|
|
2012-02-01 15:07:30 +04:00
|
|
|
%.1: %.txt
|
2012-01-28 18:45:28 +04:00
|
|
|
$(E) " GEN " $@
|
2012-02-01 15:07:30 +04:00
|
|
|
$(Q) $(ASCIIDOC) -b docbook -d manpage -o $(patsubst %.1,%.xml,$@) $<
|
|
|
|
$(Q) $(XMLTO) man --skip-validation $(patsubst %.1,%.xml,$@) 2>/dev/null
|
2012-01-28 18:45:28 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(E) " CLEAN "
|
|
|
|
$(Q) rm -f ./*.xml
|
|
|
|
$(Q) rm -f ./*.1
|
2013-04-30 13:25:08 -07:00
|
|
|
|
|
|
|
.PHONY: clean
|