diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-12-23 13:08:08 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-12-23 13:08:08 +0000 |
commit | 5fb189b4a17d0181fd18604168b98f51da53f4d1 (patch) | |
tree | fedc74a0f2bc3f2820a4edc768a48092e73cad48 | |
parent | b34fe21d98341c2d9ce834a61ce814801f96ca2c (diff) |
- Bring in the /usr/local/lib/X11/app-default handling from XF4 Makefile
- Repair subdir recursion. noticed by Frederick C. Druseikis.
-rw-r--r-- | Makefile | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -1,8 +1,12 @@ -# $OpenBSD: Makefile,v 1.10 2006/12/17 22:47:35 matthieu Exp $ +# $OpenBSD: Makefile,v 1.11 2006/12/23 13:08:07 matthieu Exp $ .include <bsd.own.mk> X11BASE?= /usr/X11R6 +LOCALAPPD=/usr/local/lib/X11/app-defaults +LOCALAPPX=/usr/local/lib/X11 +REALAPPD=/etc/X11/app-defaults + SUBDIR= proto data/bitmaps lib app data/xkbdata xserver driver util doc .ifndef NOFONTS SUBDIR+= font @@ -30,13 +34,22 @@ beforeinstall: ${MAKE} distrib-dirs ${MAKE} includes -afterinstall: +afterinstall: fix-appd cd distrib/notes; ${MAKE} install /usr/libexec/makewhatis ${DESTDIR}/usr/X11R6/man realinstall: _SUBDIRUSE -obj: _SUBDIRUSE +fix-appd: + # Make sure /usr/local/lib/X11/app-defaults is a link + if [ ! -L $(DESTDIR)${LOCALAPPD} ]; then \ + if [ -d $(DESTDIR)${LOCALAPPD} ]; then \ + mv $(DESTDIR)${LOCALAPPD}/* $(DESTDIR)${REALAPPD}; \ + rmdir $(DESTDIR)${LOCALAPPD}; \ + fi; \ + mkdir -p ${DESTDIR}${LOCALAPPX}; \ + ln -s ${REALAPPD} ${DESTDIR}${LOCALAPPD}; \ + fi release: release-clean distrib-dirs release-install dist @@ -90,6 +103,7 @@ distrib-dirs: -p ${DESTDIR}${X11ETC}/ -U .PHONY: all build beforeinstall install afterinstall release clean cleandir \ - distrib-dirs + distrib-dirs fix-appd +.include <bsd.subdir.mk> .include <bsd.xorg.mk> |