minix/external/mit/xorg/lib/libxcb/files/Makefile
Lionel Sambuc 971bb1a587 Importing external/mit/xorg support rules
Change-Id: Ib11d8659485a444797bf3a2118182a1d4e316b50
2014-11-10 14:43:29 +01:00

27 lines
653 B
Makefile

# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $
# This makefile is used to generate the libxcb xml/python generated files.
# For now it is broken, and these files were copied from a normal libxcb
# build.
.include <bsd.own.mk>
.include "Makefile.xmlsrcs"
PYTHON?= /usr/pkg/bin/python2.6
PYTHONLIB?= /usr/pkg/lib/python2.6
C_CLIENT?= ${X11SRCDIR.xcb}/src/c_client.py
.SUFFIXES: .c .xml
# this doesn't work; needs to run in the xcb tree for some reason?
.xml.c:
${PYTHON} ${C_CLIENT} -p ${PYTHONLIB}/site-packages ${.IMPSRC}
generate_from_xml: ${XMLSRCS}
all: generate_from_xml
.include <bsd.subdir.mk>
.PATH: ${X11SRCDIR.xcb-proto}/src