aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-06-01 17:27:42 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-06-01 17:27:42 +0200
commitf894d4ea34045c97aea2fc0853696431797d9f81 (patch)
tree9944b00353ba33db0eaf3863c740dc40d323e5e3 /Makefile
parent6ff1d92bbb5c6860eb17b7922728835021aad8f9 (diff)
downloadfortran-assignment2-f894d4ea34045c97aea2fc0853696431797d9f81.tar.gz
fortran-assignment2-f894d4ea34045c97aea2fc0853696431797d9f81.zip
plot original function
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 772ca48..8c77b48 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,12 @@ all : f1
f1 : src/f1.f90
$(FC) $(FFLAGS) src/f1.f90 -o $@
+res/f1_original.txt : f1
+ ./f1 > res/f1_original.txt
+
+res/%.png : src/%.gnuplot res/%.txt
+ gnuplot -c $<
+
clean :
rm f1