xref: /minix/external/mit/xorg/lib/libxcb/files/Makefile (revision e3b78ef1)
1#	$NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $
2
3# This makefile is used to generate the libxcb xml/python generated files.
4# For now it is broken, and these files were copied from a normal libxcb
5# build.
6
7.include <bsd.own.mk>
8.include "Makefile.xmlsrcs"
9
10PYTHON?=	/usr/pkg/bin/python2.6
11PYTHONLIB?=	/usr/pkg/lib/python2.6
12C_CLIENT?=	${X11SRCDIR.xcb}/src/c_client.py
13
14.SUFFIXES: .c .xml
15
16# this doesn't work; needs to run in the xcb tree for some reason?
17.xml.c:
18	${PYTHON} ${C_CLIENT} -p ${PYTHONLIB}/site-packages ${.IMPSRC}
19
20generate_from_xml: ${XMLSRCS}
21
22all: generate_from_xml
23
24.include <bsd.subdir.mk>
25
26.PATH: ${X11SRCDIR.xcb-proto}/src
27