aboutsummaryrefslogtreecommitdiff
path: root/nexgb/Makefile
blob: 7ba1cb41618e6211a9c7193235148b57d45b3571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This Makefile is used by the developer. It is not needed in any way to build
# a checkout of the XGB repository.
# It will be useful, however, if you are hacking at the code generator.

XPROTO=/usr/share/xcb

# 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

%.xml:
	xgbgen/xgbgen --proto-path $(XPROTO) $(XPROTO)/$*.xml > auto_$*.go

test:
	go test

bench:
	go test -run 'nomatch' -bench '.*' -cpu 1,2,6

gofmt:
	gofmt -w *.go xgbgen/*.go examples/*.go examples/*/*.go
	colcheck xgbgen/*.go examples/*.go examples/*/*.go \
					 auth.go conn.go cookie.go doc.go xgb.go xgb_help.go xgb_test.go