docs/Makefile
raw| 1 | # Makefile for netctl documentation |
| 2 | |
| 3 | MANPAGES = netctl.1 netctl-auto.1 netctl.profile.5 netctl.special.7 wifi-menu.1 |
| 4 | |
| 5 | .PHONY: manpages install $(MANPAGES:=-install) clean |
| 6 | |
| 7 | manpages: $(MANPAGES) |
| 8 | $(MANPAGES): %: %.txt |
| 9 | a2x -d manpage -f manpage -a manversion=$(VERSION) $< |
| 10 | |
| 11 | install: $(MANPAGES:=-install) |
| 12 | $(MANPAGES:=-install): %-install: % |
| 13 | install -Dm644 $< $(DESTDIR)/usr/share/man/man$(subst .,,$(suffix $<))/$< |
| 14 | |
| 15 | clean: |
| 16 | -@rm -vf $(MANPAGES) |
| 17 |