Home | History | Annotate | Line # | Download | only in files
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2014/03/17 07:25:34 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 
     10 PYTHON?=	/usr/pkg/bin/python2.7
     11 PYTHONLIB?=	/usr/pkg/lib/python2.7
     12 C_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 
     20 generate_from_xml: ${XMLSRCS}
     21 
     22 all: generate_from_xml
     23 
     24 .include <bsd.subdir.mk>
     25 
     26 .PATH: ${X11SRCDIR.xcb-proto}/src
     27