Makefile 661 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. TARGETS := $(shell ls scripts | grep -vE 'clean|run|help')
  2. .dapper:
  3. @echo Downloading dapper
  4. @curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .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. shell-bind: .dapper
  21. ./.dapper -m bind -s
  22. clean:
  23. @./scripts/clean
  24. help:
  25. @./scripts/help
  26. .DEFAULT_GOAL := default
  27. .PHONY: $(TARGETS)