summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 14:00:57 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 14:00:57 +0000
commite35341882f42d7153bf02a0be8d4536b27cc0035 (patch)
treedaf546f5a3c3ea80ebf9acc80f74dce06279f838 /Makefile
parent013b824ab30575de6812b633424cbb92ceb7ed85 (diff)
Top level makefile for xenocara.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..42deae2b0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,47 @@
+# $OpenBSD: Makefile,v 1.1 2006/11/26 14:00:56 matthieu Exp $
+.include <bsd.own.mk>
+
+X11BASE?= /usr/X11R6
+
+SUBDIR= proto data/bitmaps lib app data/xkbdata xserver driver util
+.ifndef NOFONTS
+SUBDIR+= font
+.endif
+.ifmake(install)
+SUBDIR+= share/mk
+.endif
+
+NOOBJS=
+
+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
+
+release:
+
+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
+
+update: _SUBDIRUSE
+
+.PHONY: all build beforeinstall install afterinstall release clean cleandir
+
+.include <bsd.subdir.mk>
+.include <bsd.xorg.mk>