Makefile 653 B

1234567891011121314151617181920212223242526272829303132333435
  1. #
  2. # Copyright (c) 2012, Joyent, Inc. All rights reserved.
  3. #
  4. # Makefile: top-level Makefile
  5. #
  6. # This Makefile contains only repo-specific logic and uses included makefiles
  7. # to supply common targets (javascriptlint, jsstyle, restdown, etc.), which are
  8. # used by other repos as well.
  9. #
  10. #
  11. # Tools
  12. #
  13. NPM = npm
  14. #
  15. # Files
  16. #
  17. JS_FILES := $(shell find lib examples tests -name '*.js')
  18. JSL_FILES_NODE = $(JS_FILES)
  19. JSSTYLE_FILES = $(JS_FILES)
  20. JSL_CONF_NODE = jsl.node.conf
  21. .PHONY: all
  22. all:
  23. $(NPM) install
  24. .PHONY: test
  25. test:
  26. node tests/tst.inherit.js
  27. node tests/tst.verror.js
  28. node tests/tst.werror.js
  29. @echo all tests passed
  30. include ./Makefile.targ