import NVIDIA-FreeBSD-x86-190.42
[nvidia.git] / doc / Makefile
1 NVIDIA_ROOT=    ${.CURDIR}/..
2
3 .if !defined(X11BASE)
4 X11BASE=        /usr/X11R6
5 .endif
6
7 BSDVER!=        /sbin/sysctl -n kern.osreldate
8 .if ${BSDVER} >= 600000
9 NO_OBJ= noobj
10 .else
11 NOOBJ=  noobj
12 .endif
13
14 DOCS=   README \
15         XF86Config.sample \
16         license.txt \
17         gl.h glx.h glext.h \
18         glxext.h \
19         vdpau.h vdpau_x11.h
20
21 HTMLDOCS!=(ls ${NVIDIA_ROOT}/doc/html/)
22
23 DOCDIR= ${X11BASE}/share/doc/NVIDIA_GLX-1.0
24
25 all:   # dummy rule
26 clean: # dummy rule
27
28 install:
29         @mkdir -p ${DESTDIR}${DOCDIR}
30 .for doc in ${DOCS}
31         @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \
32                 ${NVIDIA_ROOT}/doc/${doc} \
33                 ${DESTDIR}${DOCDIR}
34 .endfor
35         @mkdir -p ${DESTDIR}${DOCDIR}/html
36 .for doc in ${HTMLDOCS}
37         @${INSTALL} -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \
38                 ${NVIDIA_ROOT}/doc/html/${doc} \
39                 ${DESTDIR}${DOCDIR}/html
40 .endfor
41
42 .include <bsd.prog.mk>