1include $(GOROOT)/src/Make.inc
2
3
4TARG=github.com/vdobler/chart
5GOFILES=\
6	chart.go\
7	data.go\
8	util.go\
9	style.go\
10	key.go\
11	graphics.go\
12	stat.go\
13	time.go\
14	strip.go\
15	scatter.go\
16	box.go\
17	hist.go\
18	bar.go\
19	pie.go
20
21include $(GOROOT)/src/Make.pkg
22
23DRIVERS=\
24	svg\
25	txt\
26	image
27
28
29samplechart: samplecharts.go install drivers
30	$(GC) -I. samplecharts.go
31	$(LD) -L. -o samplecharts samplecharts.$(O)
32
33format: $(GOFILES) samplecharts.go
34	gofmt -w $^
35	for d in $(DRIVERS); do (cd $$d; make format); done
36
37drivers:
38	for d in $(DRIVERS); do (cd $$d; make install || exit 1) || exit 1; done
39
40CLEAN:
41	make clean
42	for d in $(DRIVERS); do (cd $$d; make clean); done