aboutsummaryrefslogtreecommitdiff
path: root/nexgb
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-06 03:06:27 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-06 03:06:27 -0400
commit70ebcf5178018a31378367f67542fc89980e62a2 (patch)
tree83d4904b009ac209c2ce429b68c6c4de9492a179 /nexgb
parentea30f1a0a718e5e86343cceac12104baab1bedca (diff)
downloadhaven-70ebcf5178018a31378367f67542fc89980e62a2.tar.gz
haven-70ebcf5178018a31378367f67542fc89980e62a2.tar.xz
haven-70ebcf5178018a31378367f67542fc89980e62a2.zip
build comman for converting XML to Go
Diffstat (limited to 'nexgb')
-rw-r--r--nexgb/Makefile27
1 files changed, 12 insertions, 15 deletions
diff --git a/nexgb/Makefile b/nexgb/Makefile
index 041d20c..b1ef0ca 100644
--- a/nexgb/Makefile
+++ b/nexgb/Makefile
@@ -1,19 +1,16 @@
-XPROTO=/usr/share/xcb
-all: xproto xinerama
-
-xproto:
- python2 go_client.py $(XPROTO)/xproto.xml
- gofmt -w xproto.go
+# This Makefile is used by the developer. It is not needed in any way to build
+# a checkout of the XGB repository.
-xinerama:
- python2 go_client.py $(XPROTO)/xinerama.xml
- gofmt -w xinerama.go
+XPROTO=/usr/share/xcb
-randr:
- python2 go_client.py $(XPROTO)/randr.xml
- gofmt -w randr.go
+# All of the XML files in my /usr/share/xcb directory EXCEPT XKB. -_-
+all: bigreq.xml composite.xml damage.xml dpms.xml dri2.xml \
+ 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
-render:
- python2 go_client.py $(XPROTO)/render.xml
- gofmt -w render.go
+%.xml:
+ xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/$*.xml > auto_$*.go