summaryrefslogtreecommitdiffstats
path: root/docs/Makefile
blob: 2fd858b9e499d3229e0d7c3465b3dfc7e1a4cb68 (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.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