2011-04-10 11:10:21 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2011/04/10 17:10:21 jasper Exp $
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-04-10 11:10:21 -06:00
|
|
|
SUBDIR= compat
|
2009-06-06 11:55:01 -06:00
|
|
|
|
|
|
|
XKB_SUBDIR= rules
|
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
DATA= xkb.dtd README
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
BASE_PARTS= base.hdr.part base.lists.part \
|
|
|
|
compat/base.lists.part \
|
|
|
|
HDR base.m_k.part \
|
|
|
|
HDR base.l1_k.part \
|
|
|
|
HDR base.l_k.part \
|
|
|
|
HDR base.o_k.part \
|
|
|
|
HDR base.ml_g.part \
|
|
|
|
HDR base.m_g.part \
|
|
|
|
HDR compat/base.mlv_s.part extras/base.mlv_s.part base.mlv_s.part \
|
|
|
|
HDR compat/base.ml_s.part extras/base.ml_s.part base.ml_s.part \
|
|
|
|
HDR compat/base.ml1_s.part extras/base.ml1_s.part base.ml1_s.part \
|
|
|
|
HDR compat/base.ml1v1_s.part extras/base.ml1v1_s.part \
|
|
|
|
HDR compat/base.ml2_s.part extras/base.ml2_s.part base.ml2_s.part \
|
|
|
|
HDR compat/base.ml3_s.part extras/base.ml3_s.part base.ml3_s.part \
|
|
|
|
HDR compat/base.ml4_s.part extras/base.ml4_s.part base.ml4_s.part \
|
|
|
|
HDR compat/base.ml2v2_s.part extras/base.ml2v2_s.part \
|
|
|
|
HDR compat/base.ml3v3_s.part extras/base.ml3v3_s.part \
|
|
|
|
HDR compat/base.ml4v4_s.part extras/base.ml4v4_s.part \
|
|
|
|
HDR base.m_s.part \
|
|
|
|
HDR compat/base.lv_c.part \
|
|
|
|
HDR compat/base.l1v1_c.part \
|
|
|
|
HDR compat/base.l2v2_c.part \
|
|
|
|
HDR compat/base.l3v3_c.part \
|
|
|
|
HDR compat/base.l4v4_c.part \
|
|
|
|
HDR base.ml_c.part \
|
|
|
|
HDR base.ml1_c.part \
|
|
|
|
HDR base.m_t.part \
|
|
|
|
HDR base.lo_s.part \
|
|
|
|
HDR base.l1o_s.part \
|
|
|
|
HDR base.l2o_s.part \
|
|
|
|
HDR base.l3o_s.part \
|
|
|
|
HDR base.l4o_s.part \
|
|
|
|
HDR compat/base.o_s.part base.o_s.part \
|
|
|
|
HDR base.o_c.part \
|
|
|
|
HDR base.o_t.part
|
2009-06-06 13:43:22 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
BASE_RULES= base base.lst base.xml base.extras.xml
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
all: depend ${BASE_RULES} _SUBDIRUSE
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2009-06-06 13:43:22 -06:00
|
|
|
depend: _SUBDIRUSE
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
base: ${BASE_PARTS}
|
|
|
|
HDR="${XKB_DIR}/${XKB_SUBDIR}/HDR" ${XKB_DIR}/${XKB_SUBDIR}/merge.sh $@ ${BASE_PARTS}
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
base.lst: base.xml
|
|
|
|
perl ${XKB_DIR}/${XKB_SUBDIR}/xml2lst.pl < base.xml > $@
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
base.xml: base.xml.in
|
2009-06-06 11:55:01 -06:00
|
|
|
sed -e 's,<_,<,g' -e 's,</_,</,g' ${XKB_DIR}/${XKB_SUBDIR}/base.xml.in > $@
|
2011-01-10 07:42:48 -07:00
|
|
|
|
|
|
|
base.extras.xml: base.extras.xml.in
|
|
|
|
sed -e 's,<_,<,g' -e 's,</_,</,g' ${XKB_DIR}/${XKB_SUBDIR}/base.extras.xml.in > $@
|
|
|
|
|
|
|
|
install-files: ${BASE_RULES}
|
|
|
|
test -z ${XKB_BASE}/${XKB_SUBDIR} || ${INSTALL_DIR} ${XKB_BASE}/${XKB_SUBDIR}
|
|
|
|
@for f in ${BASE_RULES}; do \
|
|
|
|
echo "installing $$f"; \
|
|
|
|
cmp -s $$f ${XKB_BASE}/${XKB_SUBDIR}/$$f || \
|
|
|
|
${INSTALL_DATA} $$f ${XKB_BASE}/${XKB_SUBDIR}/$$f; \
|
2009-06-06 13:43:22 -06:00
|
|
|
done
|
2009-06-06 11:55:01 -06:00
|
|
|
|
2011-01-10 07:42:48 -07:00
|
|
|
clean: _SUBDIRUSE
|
|
|
|
rm -f ${BASE_RULES}
|
2009-06-06 11:55:01 -06:00
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|
|
|
|
.include <bsd.subdir.mk>
|