build comman for converting XML to Go
This commit is contained in:
parent
ea30f1a0a7
commit
70ebcf5178
|
@ -1,19 +1,16 @@
|
||||||
|
# This Makefile is used by the developer. It is not needed in any way to build
|
||||||
|
# a checkout of the XGB repository.
|
||||||
|
|
||||||
XPROTO=/usr/share/xcb
|
XPROTO=/usr/share/xcb
|
||||||
all: xproto xinerama
|
|
||||||
|
|
||||||
xproto:
|
# All of the XML files in my /usr/share/xcb directory EXCEPT XKB. -_-
|
||||||
python2 go_client.py $(XPROTO)/xproto.xml
|
all: bigreq.xml composite.xml damage.xml dpms.xml dri2.xml \
|
||||||
gofmt -w xproto.go
|
ge.xml glx.xml randr.xml record.xml render.xml res.xml \
|
||||||
|
screensaver.xml shape.xml shm.xml sync.xml xc_misc.xml \
|
||||||
|
xevie.xml xf86dri.xml xf86vidmode.xml xfixes.xml xinerama.xml \
|
||||||
|
xinput.xml xprint.xml xproto.xml xselinux.xml xtest.xml \
|
||||||
|
xvmc.xml xv.xml
|
||||||
|
|
||||||
xinerama:
|
%.xml:
|
||||||
python2 go_client.py $(XPROTO)/xinerama.xml
|
xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/$*.xml > auto_$*.go
|
||||||
gofmt -w xinerama.go
|
|
||||||
|
|
||||||
randr:
|
|
||||||
python2 go_client.py $(XPROTO)/randr.xml
|
|
||||||
gofmt -w randr.go
|
|
||||||
|
|
||||||
render:
|
|
||||||
python2 go_client.py $(XPROTO)/render.xml
|
|
||||||
gofmt -w render.go
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue