Makefile 642 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. default: build
  2. all: build
  3. ICED=node_modules/.bin/iced
  4. BUILD_STAMP=build-stamp
  5. TEST_STAMP=test-stamp
  6. default: build
  7. all: build
  8. lib/%.js: src/%.iced
  9. $(ICED) -I browserify -c -o `dirname $@` $<
  10. $(BUILD_STAMP): \
  11. lib/base.js \
  12. lib/config.js \
  13. lib/constants.js \
  14. lib/get_index.js \
  15. lib/installer.js \
  16. lib/key_setup.js \
  17. lib/key_install.js \
  18. lib/key_upgrade.js \
  19. lib/log.js \
  20. lib/main.js \
  21. lib/npm.js \
  22. lib/package.js \
  23. lib/request.js \
  24. lib/software_upgrade.js \
  25. lib/top.js \
  26. lib/util.js
  27. date > $@
  28. clean:
  29. find lib -type f -name *.js -exec rm {} \;
  30. build: $(BUILD_STAMP)
  31. setup:
  32. npm install -d
  33. test:
  34. .PHONY: test setup