2012-10-06 09:41:11 -06:00
|
|
|
# $OpenBSD: Makefile.inc,v 1.6 2012/10/06 15:41:12 shadchin Exp $
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-10-16 11:18:56 -06:00
|
|
|
XKC_TOP?= ../../..
|
2011-06-06 13:45:44 -06:00
|
|
|
XKB_DIR= ${.CURDIR}/${XKC_TOP}/dist/xkeyboard-config
|
2009-06-06 11:55:01 -06:00
|
|
|
XKB_BASE= ${DESTDIR}${X11BASE}/share/X11/xkb
|
|
|
|
|
2011-10-16 11:18:56 -06:00
|
|
|
INSTALL_DIR= ${INSTALL} -d -o root -g wheel -m ${DIRMODE}
|
2011-01-10 07:42:48 -07:00
|
|
|
|
|
|
|
all: _SUBDIRUSE
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
.if defined(DATA)
|
2011-10-16 11:18:56 -06:00
|
|
|
install: ${DATA} install-files _SUBDIRUSE
|
2011-01-10 07:42:48 -07:00
|
|
|
test -z ${XKB_BASE}/${XKB_SUBDIR} || ${INSTALL_DIR} ${XKB_BASE}/${XKB_SUBDIR}
|
2009-06-06 11:55:01 -06:00
|
|
|
@for f in ${DATA}; do \
|
2011-10-16 11:18:56 -06:00
|
|
|
echo ${INSTALL_DATA} ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f; \
|
2011-01-10 07:42:48 -07:00
|
|
|
${INSTALL_DATA} ${XKB_DIR}/${XKB_SUBDIR}/$$f ${XKB_BASE}/${XKB_SUBDIR}/$$f; \
|
|
|
|
done
|
2009-06-06 11:55:01 -06:00
|
|
|
.else
|
2011-10-16 11:18:56 -06:00
|
|
|
install: install-files _SUBDIRUSE
|
2009-06-06 11:55:01 -06:00
|
|
|
.endif
|
|
|
|
|
2009-06-06 13:44:01 -06:00
|
|
|
.if !target(intall-files)
|
|
|
|
install-files:
|
|
|
|
.endif
|
|
|
|
|
2009-06-06 11:55:01 -06:00
|
|
|
.PATH: ${XKB_DIR}/${XKB_SUBDIR}
|