aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-06-01 22:35:55 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-06-01 22:35:55 +0200
commit18bd7d1a75209060ced888aef1424d501552e1cf (patch)
tree0618a747612ced264bfe138f8dd58558990ec55a
parent1b408f5296b72706f7521ff60abfe764ebcc34e4 (diff)
downloadfortran-assignment2-18bd7d1a75209060ced888aef1424d501552e1cf.tar.gz
fortran-assignment2-18bd7d1a75209060ced888aef1424d501552e1cf.zip
minor change in Makefile
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9fd14fb..217f0d0 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ FFLAGS = -std=f2008 -Wall -pedantic -fbounds-check -fimplicit-none \
all : f1
f1 : src/f1.f90
- $(FC) $(FFLAGS) src/f1.f90 -o $@
+ $(FC) $(FFLAGS) $^ -o $@
res/f1_original.txt : f1
./f1 > res/f1_original.txt
@@ -17,6 +17,6 @@ res/%.png : src/%.gnuplot res/%.txt
gnuplot -c $<
clean :
- rm f1
+ -rm f1 res/*.txt
.PHONY : all clean