From ad49e531dfd738fa0fc1ba9f903f73ec31081dd6 Mon Sep 17 00:00:00 2001 From: dmolina Date: Mon, 16 Nov 2020 09:49:18 +0100 Subject: [PATCH] Makefile upgrade --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 876857b..8cfc631 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +src?=1 +dest?=2 build: @echo "\n==== COMPILING ====\n" @@ -11,10 +13,13 @@ edit: demo: build @echo "\n==== EXECUTING ====\n" - ./ftest.native graphs/graph1 1 2 outfile + ./ftest.native graphs/graph1 $(src) $(dest) outfile @echo "\n==== RESULT ==== (content of outfile) \n" @cat outfile clean: -rm -rf _build/ -rm ftest.native + +svg: + dot -Tsvg outfile > graph.svg