aboutsummaryrefslogtreecommitdiff
path: root/man/Makefile
blob: 9af3a4c7df2886e20293d24854d664b8e1746edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
DIR = /usr/share/man
_MAN3_SH = ls -1 *.3
_MAN3 != $(_MAN3_SH)
MAN3 = $(_MAN3)$(shell $(_MAN3_SH))
_MAN8_SH = ls -1 *.8
_MAN8 != $(_MAN8_SH)
MAN8 = $(_MAN8)$(shell $(_MAN8_SH))

TOPDIR = ..
include $(TOPDIR)/default.mk

install::
	$(INSTALL) -d $(DESTDIR)/$(DIR)/man3
	for man in $(MAN3); do \
		$(INSTALL) -m 0644 "$$man" $(DESTDIR)/$(DIR)/man3 || exit $$?; \
	done	
	$(INSTALL) -d $(DESTDIR)/$(DIR)/man8
	for man in $(MAN8); do \
		$(INSTALL) -m 0644 "$$man" $(DESTDIR)/$(DIR)/man8 || exit $$?; \
	done