From 1ecb2c6be9e1d97fd04c93a9115c6c9f739b6f67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Wed, 30 Nov 2011 14:18:05 +0100
Subject: [PATCH] Testsuite: fix "make clean" target

---
 tests/Makefile.am | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 63a0786a9..a532dfd01 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -187,25 +187,25 @@ check-octave:
 	DYNARE_VERSION="$(PACKAGE_VERSION)" MODFILES="$(MODFILES)" $(OCTAVE) --norc --silent --no-history run_test_octave.m
 
 clean-local:
-	rm -f $(patsubst %.mod, %.m, $(MODS)) \
-		$(patsubst %.mod, %_static.*, $(MODS)) \
-		$(patsubst %.mod, %_objective_static.m, $(MODS)) \
-		$(patsubst %.mod, %_dynamic.*, $(MODS))
-
-	rm -f $(patsubst %.mod, %_results.mat, $(MODS)) \
-		$(patsubst %.mod, %_mode.mat, $(MODS)) \
-		$(patsubst %.mod, %_mh_mode.mat, $(MODS)) \
-		$(patsubst %.mod, %_mean.mat, $(MODS)) \
-		$(patsubst %.mod, %_pindx.mat, $(MODS)) \
-		$(patsubst %.mod, %_params.mat, $(MODS)) \
-		$(patsubst %.mod, %_simul, $(MODS)) \
-		$(patsubst %.mod, %.log, $(MODS))
-
-	rm -rf $(patsubst %.mod, %, $(MODS))
-
-	rm -f $(patsubst %.mod, %*.pdf, $(MODS)) \
-		$(patsubst %.mod, %*.eps, $(MODS)) \
-		$(patsubst %.mod, %*.fig, $(MODS))
+	rm -f $(patsubst %.mod, %.m, $(MODFILES)) \
+		$(patsubst %.mod, %_static.*, $(MODFILES)) \
+		$(patsubst %.mod, %_objective_static.m, $(MODFILES)) \
+		$(patsubst %.mod, %_dynamic.*, $(MODFILES))
+
+	rm -f $(patsubst %.mod, %_results.mat, $(MODFILES)) \
+		$(patsubst %.mod, %_mode.mat, $(MODFILES)) \
+		$(patsubst %.mod, %_mh_mode.mat, $(MODFILES)) \
+		$(patsubst %.mod, %_mean.mat, $(MODFILES)) \
+		$(patsubst %.mod, %_pindx.mat, $(MODFILES)) \
+		$(patsubst %.mod, %_params.mat, $(MODFILES)) \
+		$(patsubst %.mod, %_simul, $(MODFILES)) \
+		$(patsubst %.mod, %.log, $(MODFILES))
+
+	rm -rf $(patsubst %.mod, %, $(MODFILES))
+
+	rm -f $(patsubst %.mod, %*.pdf, $(MODFILES)) \
+		$(patsubst %.mod, %*.eps, $(MODFILES)) \
+		$(patsubst %.mod, %*.fig, $(MODFILES))
 
 	rm -f $(shell find -name g1.mat) \
 		$(shell find -name g2.mat) \
-- 
GitLab