From 535ebe0f7b21230016b30914a05cc9f86b2cc6a7 Mon Sep 17 00:00:00 2001
From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
Date: Mon, 1 Dec 2003 22:00:39 +0000
Subject: [PATCH] Include all Makefile's into AC_CONFIG_FILES(), otherwise
 "make distclean" doesn't work anymore.

---
 m4/alberta-dims.m4 | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/m4/alberta-dims.m4 b/m4/alberta-dims.m4
index 053d692..9ff85a5 100644
--- a/m4/alberta-dims.m4
+++ b/m4/alberta-dims.m4
@@ -1,21 +1,25 @@
 #
 # enable building of $1$2 library (DIM/DIM_OF_WORLD)
 #
+#
+# NOTE: it is a bad idea to remove the unneeded Makefiles from the
+# config-files, it breaks "make distclean"
+#
 AC_DEFUN([ALBERTA_DIMENSION_ENABLE],
 [SIMPLE_ENABLE_FLAG([alberta-$1$2],
 [enable building of an ALBERTA library for parametric Finite Elements
 of dimension $1 where the surrounding space has dimension $2.], 0)
 if test "$ALBERTA_$1$2" -eq 1; then
 	AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$2_0/Makefile])
-	if test "$DEBUG" -eq 1; then
+dnl	if test "$DEBUG" -eq 1; then
 		AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$2_1/Makefile])
-	fi
-	if test "$EL_INDEX" -eq 1; then	
+dnl	fi
+dnl	if test "$EL_INDEX" -eq 1; then	
 		AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$2_01/Makefile])
-	fi
-	if test "$DEBUG" -eq 1 -a "$EL_INDEX" -eq 1; then
+dnl	fi
+dnl	if test "$DEBUG" -eq 1 -a "$EL_INDEX" -eq 1; then
 		AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$2_11/Makefile])
-	fi
+dnl	fi
 fi
 ])
 AC_DEFUN([ALBERTA_DIMENSION_DISABLE],
@@ -23,14 +27,14 @@ AC_DEFUN([ALBERTA_DIMENSION_DISABLE],
 [disable building of an ALBERTA library for Finite Elements of dimension $1.], 1)
 if test "$ALBERTA_$1$1" -eq 1; then
 	AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$1_0/Makefile])
-	if test "$DEBUG" -eq 1; then
+dnl	if test "$DEBUG" -eq 1; then
 		AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$1_1/Makefile])
-	fi
-	if test "$EL_INDEX" -eq 1; then	
+dnl	fi
+dnl	if test "$EL_INDEX" -eq 1; then	
 		AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$1_01/Makefile])
-	fi
-	if test "$DEBUG" -eq 1 -a "$EL_INDEX" -eq 1; then
+dnl	fi
+dnl	if test "$DEBUG" -eq 1 -a "$EL_INDEX" -eq 1; then
 		AC_CONFIG_FILES([ALBERTA/src/ALBERTA$1$1_11/Makefile])
-	fi
+dnl	fi
 fi
 ])
-- 
GitLab