Makefile upgrade

This commit is contained in:
Damien Molina 2020-11-16 09:49:18 +01:00
parent 1ec2eed82f
commit ad49e531df

View file

@ -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