aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '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