You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
549 B

  1. .PHONY: symbiyosys ghdl-formal all NOCACHE
  2. # Support for make environment variable NOCACHE
  3. ifeq (NOCACHE,$(lastword $(MAKECMDGOALS)))
  4. OPTIONS := --no-cache
  5. $(info INFO: build without cache)
  6. $(eval $(lastword$(MAKECMDGOALS)):dummy;@:)
  7. endif
  8. NOCACHE:
  9. @#
  10. ifndef TAG
  11. TAG := latest
  12. $(info INFO: Using predefined tag 'latest')
  13. else
  14. $(info INFO: Using user given tag '${TAG}')
  15. endif
  16. all: symbiyosys ghdl-formal
  17. .SECONDEXPANSION:
  18. symbiyosys ghdl-formal: $$@.Dockerfile
  19. docker build ${OPTIONS} -t $@:${TAG} -f $@.Dockerfile .