summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-06-06 19:44:02 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-06-06 19:44:02 +0000
commit79ffc6383e495124d82dd1de4af2b1e5c3838150 (patch)
treea0d66bc7d7456ce37288841f18718cdb0d243e5d
parentdefc1a0a3fbe58efb0a6b9feb0a55658e0358107 (diff)
Separate install-files target for 'rules' subdir.
-rw-r--r--data/xkeyboard-config/Makefile.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/data/xkeyboard-config/Makefile.inc b/data/xkeyboard-config/Makefile.inc
index 3cc90ae31..8f2b0ec79 100644
--- a/data/xkeyboard-config/Makefile.inc
+++ b/data/xkeyboard-config/Makefile.inc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.inc,v 1.1 2009/06/06 17:55:01 matthieu Exp $
+# $OpenBSD: Makefile.inc,v 1.2 2009/06/06 19:44:01 matthieu Exp $
TOP?= ../../..
XKB_DIR= ${.CURDIR}/${TOP}/dist/xkeyboard-config
@@ -17,7 +17,7 @@ ${DIR_DATA}: ${DATA}
rm -f $@
cd ${.CURDIR} && ${XKBCOMP} -lfhlpR -o ${.OBJDIR}/$@ '*'
-install: ${DATA} install-dir _SUBDIRUSE
+install: ${DATA} install-dir install-files _SUBDIRUSE
@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
@@ -29,6 +29,10 @@ install-dir: ${DIR_DATA}
install-dir:
.endif
+.if !target(intall-files)
+install-files:
+.endif
+
.if defined(DIR_DATA) && !target(clean)
clean:
rm -f ${DIR_DATA}