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

MANPAGES = netctl.1 netctl-auto.1 netctl.profile.5 netctl.special.7

.PHONY: manpages install $(MANPAGES:=-install) clean
manpages: $(MANPAGES)
$(MANPAGES): %: %.txt
	a2x -d manpage -f manpage -a manversion=$(VERSION) $<

install: $(MANPAGES:=-install)
$(MANPAGES:=-install): %-install: %
	install -Dm644 $< $(DESTDIR)/usr/share/man/man$(subst .,,$(suffix $<))/$<

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