[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / xenocara

Annotation of xenocara/Makefile, Revision 1.10

1.10    ! matthieu    1: # $OpenBSD: Makefile,v 1.9 2006/12/17 20:41:36 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:
1.10    ! matthieu   14: NOOBJ=
1.1       matthieu   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.10    ! matthieu   38:
        !            39: obj: _SUBDIRUSE
1.3       matthieu   40:
                     41: release: release-clean distrib-dirs release-install dist
                     42:
                     43: release-clean:
                     44: .if ! ( defined(DESTDIR) && defined(RELEASEDIR) )
                     45:        @echo You must set DESTDIR and RELEASEDIR for a release.; exit 255
                     46: .endif
                     47:        ${RM} -rf ${DESTDIR}/usr/X11R6/* ${DESTDIR}/usr/X11R6/.[a-zA-Z0-9]*
                     48:        ${RM} -rf ${DESTDIR}/var/cache/*
                     49:        ${RM} -rf ${DESTDIR}/etc/X11/*
                     50:        ${RM} -rf ${DESTDIR}/etc/fonts/*
                     51:        @if [ -d ${DESTDIR}/usr/X11R6 ] && [ "`cd ${DESTDIR}/usr/X11R6;ls`" ]; then \
                     52:                echo "Files found in ${DESTDIR}/usr/X11R6:"; \
                     53:                (cd ${DESTDIR}/usr/X11R6;/bin/pwd;ls -a); \
                     54:                echo "Cleanup before proceeding."; \
                     55:                exit 255; \
                     56:        fi
                     57:
                     58: release-install:
                     59:        @${MAKE} install
                     60: .if ${MACHINE} == alpha || ${MACHINE} == hp300 || ${MACHINE} == mac68k || \
                     61:     ${MACHINE} == macppc || ${MACHINE} == sparc || ${MACHINE} == vax || \
                     62:     ${MACHINE} == zaurus
                     63:        @if [ -f $(DESTDIR)/etc/X11/xorg.conf ]; then \
                     64:         echo "Not overwriting existing" $(DESTDIR)/etc/X11/xorg.conf; \
                     65:        else set -x; \
                     66:         ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
                     67:                ${XCONFIG} ${DESTDIR}/etc/X11 ; \
                     68:        fi
                     69: .endif
                     70:
                     71: dist-rel:
                     72:        ${MAKE} RELEASEDIR=`pwd`/rel DESTDIR=`pwd`/dest dist 2>&1 | tee distlog
                     73:
                     74: dist:
                     75:        cd distrib/sets && \
                     76:                env MACHINE=${MACHINE} ksh ./maketars ${OSrev} ${OSREV} && \
                     77:                (env MACHINE=${MACHINE} ksh ./checkflist ${OSREV} || true)
                     78:
1.1       matthieu   79:
                     80: distrib-dirs:
                     81:        if [ ! -d ${DESTDIR}${X11BASE}/. ]; then \
                     82:                ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11BASE}/; \
                     83:        fi
                     84:        mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist \
                     85:                -p ${DESTDIR}${X11BASE}/ -U
1.2       matthieu   86:        if [ ! -d ${DESTDIR}${X11ETC}/. ]; then \
                     87:                ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11ETC}/; \
                     88:        fi
1.6       matthieu   89:        mtree -qdef ${.CURDIR}/etc/mtree/BSD.etc-x11.dist \
1.2       matthieu   90:                -p ${DESTDIR}${X11ETC}/ -U
1.1       matthieu   91:
1.9       matthieu   92: .PHONY: all build beforeinstall install afterinstall release clean cleandir \
                     93:        distrib-dirs
1.1       matthieu   94:
                     95: .include <bsd.xorg.mk>