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

Annotation of xenocara/Makefile, Revision 1.8

1.8     ! matthieu    1: # $OpenBSD: Makefile,v 1.7 2006/11/30 23:22:15 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.7       matthieu   33: afterinstall: install-distrib
1.3       matthieu   34:        /usr/libexec/makewhatis ${DESTDIR}/usr/X11R6/man
                     35:
                     36: install-distrib:
                     37:        cd distrib/notes; ${MAKE} install
                     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:
                     57: release-install:
                     58:        @${MAKE} install
                     59: .if ${MACHINE} == alpha || ${MACHINE} == hp300 || ${MACHINE} == mac68k || \
                     60:     ${MACHINE} == macppc || ${MACHINE} == sparc || ${MACHINE} == vax || \
                     61:     ${MACHINE} == zaurus
                     62:        @if [ -f $(DESTDIR)/etc/X11/xorg.conf ]; then \
                     63:         echo "Not overwriting existing" $(DESTDIR)/etc/X11/xorg.conf; \
                     64:        else set -x; \
                     65:         ${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
                     66:                ${XCONFIG} ${DESTDIR}/etc/X11 ; \
                     67:        fi
                     68: .endif
                     69:
                     70: dist-rel:
                     71:        ${MAKE} RELEASEDIR=`pwd`/rel DESTDIR=`pwd`/dest dist 2>&1 | tee distlog
                     72:
                     73: dist:
                     74:        cd distrib/sets && \
                     75:                env MACHINE=${MACHINE} ksh ./maketars ${OSrev} ${OSREV} && \
                     76:                (env MACHINE=${MACHINE} ksh ./checkflist ${OSREV} || true)
                     77:
1.1       matthieu   78:
                     79: distrib-dirs:
                     80:        if [ ! -d ${DESTDIR}${X11BASE}/. ]; then \
                     81:                ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11BASE}/; \
                     82:        fi
                     83:        mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist \
                     84:                -p ${DESTDIR}${X11BASE}/ -U
1.2       matthieu   85:        if [ ! -d ${DESTDIR}${X11ETC}/. ]; then \
                     86:                ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11ETC}/; \
                     87:        fi
1.6       matthieu   88:        mtree -qdef ${.CURDIR}/etc/mtree/BSD.etc-x11.dist \
1.2       matthieu   89:                -p ${DESTDIR}${X11ETC}/ -U
1.1       matthieu   90:
                     91: .PHONY: all build beforeinstall install afterinstall release clean cleandir
                     92:
                     93: .include <bsd.subdir.mk>
                     94: .include <bsd.xorg.mk>