Makefile 765 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. TARGETS := $(shell ls scripts | grep -vE 'clean|run|help|docs')
  2. .dapper:
  3. @echo Downloading dapper
  4. @curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m|sed 's/v7l//'` > .dapper.tmp
  5. @@chmod +x .dapper.tmp
  6. @./.dapper.tmp -v
  7. @mv .dapper.tmp .dapper
  8. $(TARGETS): .dapper
  9. ./.dapper $@
  10. trash: .dapper
  11. ./.dapper -m bind trash
  12. trash-keep: .dapper
  13. ./.dapper -m bind trash -k
  14. deps: trash
  15. build/initrd/.id: .dapper
  16. ./.dapper prepare
  17. run: build/initrd/.id .dapper
  18. ./.dapper -m bind build-target
  19. ./scripts/run
  20. docs:
  21. ./scripts/docs
  22. shell-bind: .dapper
  23. ./.dapper -m bind -s
  24. clean:
  25. @./scripts/clean
  26. itest:
  27. ./.dapper integration-test 2>&1 | tee dist/itest.log
  28. help:
  29. @./scripts/help
  30. .DEFAULT_GOAL := default
  31. .PHONY: $(TARGETS)