summaryrefslogtreecommitdiff
path: root/doc/gl-docs/Makefile.inc
blob: 6eefa770da3a48418fbef9f97b70a76d959ccb17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $OpenBSD: Makefile.inc,v 1.1 2012/08/07 21:10:35 matthieu Exp $

all:

cleandir:

.SUFFIXES: .3 .3gl

.for page source in $(MAN)
_INST_MAN = ${DESTDIR}${MANDIR}$(page:E)/$(page:T)
${_INST_MAN}: ${source}
	${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} \
	  ${.ALLSRC} ${.TARGET}

install: ${_INST_MAN}

.PHONY: ${_INST_MAN}
.endfor

install:
.for lnk file in $(LINKS)
	@l=${DESTDIR}${MANDIR}${lnk:E}/${lnk}; \
	t=${DESTDIR}${MANDIR}${file:E}/${file}; \
	echo $$t -\> $$l; \
	rm -f $$t; ln $$l $$t;
.endfor

NOOBJ=