summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: 5e434a37aa7c9d43ccaf0e04a3b7fc38de3200ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Makefile for netcfg documentation

MANPAGES = netcfg.8 netcfg-profiles.5
WEBPAGES = index.html features.html $(MANPAGES:%=%.html)

.PHONY: all clean

all: $(MANPAGES) $(WEBPAGES)

$(MANPAGES): %: %.txt footer.txt
	a2x -d manpage -f manpage -a manversion=$(VERSION) $<

$(WEBPAGES): %.html: %.txt
	asciidoc -a version=$(VERSION) $<

clean:
	-@rm -vf $(MANPAGES) $(WEBPAGES) 2>/dev/null