Annotation of xenocara/Makefile, Revision 1.9
1.9 ! matthieu 1: # $OpenBSD: Makefile,v 1.8 2006/12/17 20:15:39 matthieu Exp $
1.1 matthieu 2: .include <bsd.own.mk>
3:
4: X11BASE?= /usr/X11R6
5:
1.4 matthieu 6: SUBDIR= proto data/bitmaps lib app data/xkbdata xserver driver util doc
1.1 matthieu 7: .ifndef NOFONTS
8: SUBDIR+= font
9: .endif
10: .ifmake(install)
11: SUBDIR+= share/mk
12: .endif
13:
14: NOOBJS=
15:
16: build: beforebuild _SUBDIRUSE
17:
18: bootstrap:
19: ${SUDO} ${MAKE} distrib-dirs
20: cd ${.CURDIR}/share/mk \
21: && ${SUDO} ${MAKE} install
22:
23: beforebuild: bootstrap
24: cd ${.CURDIR}/util/macros \
25: && ${MAKE} -f Makefile.bsd-wrapper \
26: && ${SUDO} ${MAKE} -f Makefile.bsd-wrapper install
27: ${SUDO} ${MAKE} includes
28:
29: beforeinstall:
30: ${MAKE} distrib-dirs
31: ${MAKE} includes
32:
1.9 ! matthieu 33: afterinstall:
! 34: cd distrib/notes; ${MAKE} install
1.3 matthieu 35: /usr/libexec/makewhatis ${DESTDIR}/usr/X11R6/man
36:
1.9 ! matthieu 37: realinstall: _SUBDIRUSE
1.3 matthieu 38:
39: release: release-clean distrib-dirs release-install dist
40:
41: release-clean:
42: .if ! ( defined(DESTDIR) && defined(RELEASEDIR) )
43: @echo You must set DESTDIR and RELEASEDIR for a release.; exit 255
44: .endif
45: ${RM} -rf ${DESTDIR}/usr/X11R6/* ${DESTDIR}/usr/X11R6/.[a-zA-Z0-9]*
46: ${RM} -rf ${DESTDIR}/var/cache/*
47: ${RM} -rf ${DESTDIR}/etc/X11/*
48: ${RM} -rf ${DESTDIR}/etc/fonts/*
49: @if [ -d ${DESTDIR}/usr/X11R6 ] && [ "`cd ${DESTDIR}/usr/X11R6;ls`" ]; then \
50: echo "Files found in ${DESTDIR}/usr/X11R6:"; \
51: (cd ${DESTDIR}/usr/X11R6;/bin/pwd;ls -a); \
52: echo "Cleanup before proceeding."; \
53: exit 255; \
54: fi
55:
56: release-install:
57: @${MAKE} install
58: .if ${MACHINE} == alpha || ${MACHINE} == hp300 || ${MACHINE} == mac68k || \
59: ${MACHINE} == macppc || ${MACHINE} == sparc || ${MACHINE} == vax || \
60: ${MACHINE} == zaurus
61: @if [ -f $(DESTDIR)/etc/X11/xorg.conf ]; then \
62: echo "Not overwriting existing" $(DESTDIR)/etc/X11/xorg.conf; \
63: else set -x; \
64: ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
65: ${XCONFIG} ${DESTDIR}/etc/X11 ; \
66: fi
67: .endif
68:
69: dist-rel:
70: ${MAKE} RELEASEDIR=`pwd`/rel DESTDIR=`pwd`/dest dist 2>&1 | tee distlog
71:
72: dist:
73: cd distrib/sets && \
74: env MACHINE=${MACHINE} ksh ./maketars ${OSrev} ${OSREV} && \
75: (env MACHINE=${MACHINE} ksh ./checkflist ${OSREV} || true)
76:
1.1 matthieu 77:
78: distrib-dirs:
79: if [ ! -d ${DESTDIR}${X11BASE}/. ]; then \
80: ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11BASE}/; \
81: fi
82: mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist \
83: -p ${DESTDIR}${X11BASE}/ -U
1.2 matthieu 84: if [ ! -d ${DESTDIR}${X11ETC}/. ]; then \
85: ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11ETC}/; \
86: fi
1.6 matthieu 87: mtree -qdef ${.CURDIR}/etc/mtree/BSD.etc-x11.dist \
1.2 matthieu 88: -p ${DESTDIR}${X11ETC}/ -U
1.1 matthieu 89:
1.9 ! matthieu 90: .PHONY: all build beforeinstall install afterinstall release clean cleandir \
! 91: distrib-dirs
1.1 matthieu 92:
93: .include <bsd.xorg.mk>