xenocara/Makefile

96 lines
2.5 KiB
Makefile
Raw Normal View History

2006-12-17 15:47:35 -07:00
# $OpenBSD: Makefile,v 1.10 2006/12/17 22:47:35 matthieu Exp $
2006-11-26 07:00:56 -07:00
.include <bsd.own.mk>
X11BASE?= /usr/X11R6
2006-11-29 15:45:03 -07:00
SUBDIR= proto data/bitmaps lib app data/xkbdata xserver driver util doc
2006-11-26 07:00:56 -07:00
.ifndef NOFONTS
SUBDIR+= font
.endif
.ifmake(install)
SUBDIR+= share/mk
.endif
2006-12-17 15:47:35 -07:00
NOOBJ=
2006-11-26 07:00:56 -07:00
build: beforebuild _SUBDIRUSE
bootstrap:
${SUDO} ${MAKE} distrib-dirs
cd ${.CURDIR}/share/mk \
&& ${SUDO} ${MAKE} install
beforebuild: bootstrap
cd ${.CURDIR}/util/macros \
&& ${MAKE} -f Makefile.bsd-wrapper \
&& ${SUDO} ${MAKE} -f Makefile.bsd-wrapper install
${SUDO} ${MAKE} includes
beforeinstall:
${MAKE} distrib-dirs
${MAKE} includes
afterinstall:
cd distrib/notes; ${MAKE} install
2006-11-29 14:52:18 -07:00
/usr/libexec/makewhatis ${DESTDIR}/usr/X11R6/man
realinstall: _SUBDIRUSE
2006-11-29 14:52:18 -07:00
2006-12-17 15:47:35 -07:00
obj: _SUBDIRUSE
2006-11-29 14:52:18 -07:00
release: release-clean distrib-dirs release-install dist
release-clean:
.if ! ( defined(DESTDIR) && defined(RELEASEDIR) )
@echo You must set DESTDIR and RELEASEDIR for a release.; exit 255
.endif
${RM} -rf ${DESTDIR}/usr/X11R6/* ${DESTDIR}/usr/X11R6/.[a-zA-Z0-9]*
${RM} -rf ${DESTDIR}/var/cache/*
${RM} -rf ${DESTDIR}/etc/X11/*
${RM} -rf ${DESTDIR}/etc/fonts/*
@if [ -d ${DESTDIR}/usr/X11R6 ] && [ "`cd ${DESTDIR}/usr/X11R6;ls`" ]; then \
echo "Files found in ${DESTDIR}/usr/X11R6:"; \
(cd ${DESTDIR}/usr/X11R6;/bin/pwd;ls -a); \
echo "Cleanup before proceeding."; \
exit 255; \
fi
release-install:
@${MAKE} install
.if ${MACHINE} == alpha || ${MACHINE} == hp300 || ${MACHINE} == mac68k || \
${MACHINE} == macppc || ${MACHINE} == sparc || ${MACHINE} == vax || \
${MACHINE} == zaurus
@if [ -f $(DESTDIR)/etc/X11/xorg.conf ]; then \
echo "Not overwriting existing" $(DESTDIR)/etc/X11/xorg.conf; \
else set -x; \
${INSTALL} ${INSTALL_COPY} -o root -g wheel -m 644 \
${XCONFIG} ${DESTDIR}/etc/X11 ; \
fi
.endif
dist-rel:
${MAKE} RELEASEDIR=`pwd`/rel DESTDIR=`pwd`/dest dist 2>&1 | tee distlog
dist:
cd distrib/sets && \
env MACHINE=${MACHINE} ksh ./maketars ${OSrev} ${OSREV} && \
(env MACHINE=${MACHINE} ksh ./checkflist ${OSREV} || true)
2006-11-26 07:00:56 -07:00
distrib-dirs:
if [ ! -d ${DESTDIR}${X11BASE}/. ]; then \
${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11BASE}/; \
fi
mtree -qdef ${.CURDIR}/etc/mtree/BSD.x11.dist \
-p ${DESTDIR}${X11BASE}/ -U
2006-11-29 10:42:27 -07:00
if [ ! -d ${DESTDIR}${X11ETC}/. ]; then \
${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}${X11ETC}/; \
fi
2006-11-30 10:12:58 -07:00
mtree -qdef ${.CURDIR}/etc/mtree/BSD.etc-x11.dist \
2006-11-29 10:42:27 -07:00
-p ${DESTDIR}${X11ETC}/ -U
2006-11-26 07:00:56 -07:00
.PHONY: all build beforeinstall install afterinstall release clean cleandir \
distrib-dirs
2006-11-26 07:00:56 -07:00
.include <bsd.xorg.mk>