=================================================================== RCS file: /cvsrepo/anoncvs/cvs/xenocara/Makefile,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- xenocara/Makefile 2006/12/31 10:52:07 1.13 +++ xenocara/Makefile 2006/12/31 13:55:44 1.14 @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.13 2006/12/31 10:52:07 matthieu Exp $ +# $OpenBSD: Makefile,v 1.14 2006/12/31 13:55:44 matthieu Exp $ .include LOCALAPPD=/usr/local/lib/X11/app-defaults @@ -9,9 +9,6 @@ .ifndef NOFONTS SUBDIR+= font .endif -.ifmake(install) -SUBDIR+= share/mk -.endif NOOBJ= @@ -32,11 +29,19 @@ ${MAKE} distrib-dirs ${MAKE} includes -afterinstall: fix-appd +afterinstall: + ${MAKE} install-mk + ${MAKE} fix-appd cd distrib/notes; ${MAKE} install /usr/libexec/makewhatis ${DESTDIR}/usr/X11R6/man realinstall: _SUBDIRUSE + +install-mk: +.if defined(DESTDIR) && (${DESTDIR} != "" || ${DESTDIR} != "/") + cd ${.CURDIR}/share/mk \ + && ${MAKE} X11BASE=${X11BASE} install +.endif fix-appd: # Make sure /usr/local/lib/X11/app-defaults is a link