summaryrefslogtreecommitdiff
path: root/data/xkeyboard-config/Makefile.inc
diff options
context:
space:
mode:
authorAlexandr Shadchin <shadchin@cvs.openbsd.org>2011-10-16 17:18:58 +0000
committerAlexandr Shadchin <shadchin@cvs.openbsd.org>2011-10-16 17:18:58 +0000
commitfbfd67c313d1aa2cf63d49429c82dc8001de31ca (patch)
tree64f295822d5d8b4b505f2574969487ba350df8b0 /data/xkeyboard-config/Makefile.inc
parentca4806306e4c63d8dcf1f9c02f764b6618c71f55 (diff)
Update to 2.4.1
ok jasper@, matthieu@
Diffstat (limited to 'data/xkeyboard-config/Makefile.inc')
-rw-r--r--data/xkeyboard-config/Makefile.inc33
1 files changed, 8 insertions, 25 deletions
diff --git a/data/xkeyboard-config/Makefile.inc b/data/xkeyboard-config/Makefile.inc
index f8f687efe..2b27a22c4 100644
--- a/data/xkeyboard-config/Makefile.inc
+++ b/data/xkeyboard-config/Makefile.inc
@@ -1,44 +1,27 @@
-# $OpenBSD: Makefile.inc,v 1.4 2011/06/06 19:45:44 matthieu Exp $
+# $OpenBSD: Makefile.inc,v 1.5 2011/10/16 17:18:56 shadchin Exp $
-XKC_TOP?= ../../..
+XKC_TOP?= ../../..
XKB_DIR= ${.CURDIR}/${XKC_TOP}/dist/xkeyboard-config
XKB_BASE= ${DESTDIR}${X11BASE}/share/X11/xkb
XKBCOMP= xkbcomp
-INSTALL_DIR= ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} -m ${DIRMODE}
+INSTALL_DIR= ${INSTALL} -d -o root -g wheel -m ${DIRMODE}
-.if !target(all)
-.if defined(DIR_DATA)
-all: _SUBDIRUSE ${DIR_DATA}
-.else
all: _SUBDIRUSE
-.endif
-.endif
-
-.if defined(DIR_DATA)
-${DIR_DATA}: ${DATA}
- rm -f $@
- cd ${XKB_DIR}/${XKB_SUBDIR} && ${XKBCOMP} -lfhlpR -o ${.OBJDIR}/$@ '*'
-.endif
.if defined(DATA)
-install: ${DATA} install-dir install-files _SUBDIRUSE
+install: ${DATA} install-files _SUBDIRUSE
test -z ${XKB_BASE}/${XKB_SUBDIR} || ${INSTALL_DIR} ${XKB_BASE}/${XKB_SUBDIR}
@for f in ${DATA}; do \
- echo installing "$$f" ; \
- cmp -s ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f || \
+ echo ${INSTALL_DATA} ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f; \
${INSTALL_DATA} ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f; \
done
-.else
-install: install-dir install-files _SUBDIRUSE
-.endif
-
.if defined(DIR_DATA)
-install-dir: ${DIR_DATA}
- test -z ${XKB_BASE} || ${INSTALL_DIR} ${XKB_BASE}
+ cd ${XKB_BASE}/${XKB_SUBDIR} && ${XKBCOMP} -lfhlpR -o ${.OBJDIR}/${DIR_DATA} '*'
${INSTALL_DATA} ${DIR_DATA} ${XKB_BASE}
+.endif
.else
-install-dir:
+install: install-files _SUBDIRUSE
.endif
.if !target(intall-files)