blob: f8f687efe036252e69b4a298162b048274a79a20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $OpenBSD: Makefile.inc,v 1.4 2011/06/06 19:45:44 matthieu Exp $
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}
.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
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 || \
${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}
${INSTALL_DATA} ${DIR_DATA} ${XKB_BASE}
.else
install-dir:
.endif
.if !target(intall-files)
install-files:
.endif
.if defined(DIR_DATA) && !target(clean)
clean:
rm -f ${DIR_DATA}
.endif
.PATH: ${XKB_DIR}/${XKB_SUBDIR}
|