quest/doc/man/Makefile

16 lines
193 B
Makefile

DOCS=$(shell find *.7)
TARGETS=$(patsubst %.7,%.txt,$(DOCS))
.SUFFIXES: .7 .txt
# From .7 to .txt
.7.txt:
mandoc -T utf8 $< > $@
.PHONY: all
all: $(TARGETS)
.PHONY: clean
clean:
rm *.txt