Advertisement
Guest User

Untitled

a guest
May 31st, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. warning_plot:
  2. ifeq ($(RUN_NAME), last_run)
  3. $(call example_line,"plot")
  4. @exit 1
  5. endif
  6.  
  7. warning_replot:
  8. ifeq ($(RUN_NAME), last_run)
  9. $(call example_line,"replot")
  10. @exit 1
  11. endif
  12.  
  13. warning_run:
  14. ifeq ($(RUN_NAME), last_run)
  15. $(call example_line,"run")
  16. @exit 1
  17. endif
  18.  
  19. define example_line =
  20. @echo -e "------------------------------------------------\n"
  21. @echo -e "$(REDC)WARNING:$(ENDC) \n"
  22. @echo -e "Set the RUN_NAME\n"
  23. @echo -e "EXAMPLE:\n"
  24. @echo -e "$(GREENC)make $(1) RUN_NAME=my_run_name$(ENDC)\n"
  25. @echo -e "------------------------------------------------\n"
  26. endef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement