SYMBI_SRC_FILE := /opt/symbiotic.sh TASKS := flag_check .PHONY: all all: flag_check define taskTemplate .PHONY: $(1) $(1): source $(SYMBI_SRC_FILE); sby -f symbiyosys.sby $(1) endef $(foreach task, $(TASKS), $(eval $(call taskTemplate,$(task)))) wave: ifndef wf $(error please give wave parameter) endif gtkwave -a trace.gtkw $(wf) .PHONY: clean clean: rm -rf symbiyosys_*