Makefile 479 B

12345678910111213141516171819202122
  1. # Copyright 2011 The Graphics-Go Authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style
  3. # license that can be found in the LICENSE file.
  4. include $(GOROOT)/src/Make.inc
  5. all: install
  6. # The order matters: earlier packages may not depend on later ones.
  7. DIRS=\
  8. graphics
  9. test:
  10. cd graphics; GOMAXPROCS=2 gomake test
  11. bench:
  12. cd graphics; GOMAXPROCS=2 gomake bench
  13. install clean nuke:
  14. for dir in $(DIRS); do \
  15. $(MAKE) -C $$dir $@ || exit 1; \
  16. done