summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: f8671f6a2ee30e1b0badd4cfd99c4c7287cd623b (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 disable-javascript -a version=$(VERSION) $<

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