[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-NG] [PATCH] [ng] general: assume dot-starting file names are s
From: |
Stefano Lattarini |
Subject: |
[Automake-NG] [PATCH] [ng] general: assume dot-starting file names are supported |
Date: |
Wed, 30 May 2012 09:32:07 +0200 |
Now that we've dropped support for DJGPP, Windows 95/98/ME and MS-DOS,
that should always the case.
* lib/am/texibuild.am: Just assume we can have directories whose name
starts with a dot, i.e., that '${am__leading_dot}' expands to '.'.
* m4/depend.m4 (AM_SET_DEPDIR): Likewise. Now $(DEPDIR) will be set
unconditionally to '.deps'.
* m4/init.m4 (AM_INIT_AUTOMAKE): Don't AC_REQUIRE the m4 macro
'AM_SET_LEADING_DOT' anymore.
* m4/lead-dot.m4: Delete.
* Makefile.am (dist_automake_ac_DATA): Remove it.
* NG-NEWS: Update.
* t/subobj11a.sh: Just assume $(DEPDIR) expands to '.deps'.
Signed-off-by: Stefano Lattarini <address@hidden>
---
I will push shortly if there is no objection.
Makefile.am | 1 -
NG-NEWS | 6 ++++++
lib/am/texibuild.am | 2 +-
m4/depend.m4 | 5 +----
m4/init.m4 | 1 -
m4/lead-dot.m4 | 21 ---------------------
t/subobj11a.sh | 8 +-------
7 files changed, 9 insertions(+), 35 deletions(-)
delete mode 100644 m4/lead-dot.m4
diff --git a/Makefile.am b/Makefile.am
index 533faef..51fb414 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -243,7 +243,6 @@ dist_automake_ac_DATA = \
m4/gcj.m4 \
m4/init.m4 \
m4/install-sh.m4 \
- m4/lead-dot.m4 \
m4/lex.m4 \
m4/lispdir.m4 \
m4/maintainer.m4 \
diff --git a/NG-NEWS b/NG-NEWS
index ed36fe2..defd9c0 100644
--- a/NG-NEWS
+++ b/NG-NEWS
@@ -228,6 +228,12 @@ Obsolete Features Removed
Of course, MinGW/MSYS and Cygwin on Windows 2000 and later are still
fully supported.
+* Automake-generated Makefiles assumes the target system always support
+ file names starting with a dot; accordingly, the internal m4 macro
+ 'AM_SET_LEADING_DOT' and AC_SUBST'd variable 'am__leading_dot' have
+ been removed.
+
+
Source Files with Unknown Extensions
====================================
diff --git a/lib/am/texibuild.am b/lib/am/texibuild.am
index 039e6de..10f5b36 100644
--- a/lib/am/texibuild.am
+++ b/lib/am/texibuild.am
@@ -25,7 +25,7 @@
## 2) If the texinfo file has some minor mistakes which cause makeinfo
## to fail, the info files are not removed. (They are needed by the
## developer while he writes documentation.)
- %AM_V_MAKEINFO%restore=: && backupdir="$(am__leading_dot)am$$$$" && \
+ %AM_V_MAKEINFO%restore=: && backupdir=.am$$$$ && \
?INSRC? am__cwd=`pwd` && $(am__cd) $(srcdir) && \
rm -rf $$backupdir && mkdir $$backupdir && \
## If makeinfo is not installed we must not backup the files so
diff --git a/m4/depend.m4 b/m4/depend.m4
index 0c1112e..caa984b 100644
--- a/m4/depend.m4
+++ b/m4/depend.m4
@@ -159,10 +159,7 @@ AM_CONDITIONAL([am__fastdep$1], [
# -------------
# Choose a directory name for dependency files.
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
+AC_DEFUN([AM_SET_DEPDIR], [AC_SUBST([DEPDIR], [.deps])])
# AM_DEP_TRACK
diff --git a/m4/init.m4 b/m4/init.m4
index 0abf787..9d06c96 100644
--- a/m4/init.m4
+++ b/m4/init.m4
@@ -68,7 +68,6 @@ AC_REQUIRE([AC_PROG_MKDIR_P])dnl
# We need awk for the "check" target. The system "awk" is bad on
# some platforms.
AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
[_AM_PROG_TAR([v7])])])
diff --git a/m4/lead-dot.m4 b/m4/lead-dot.m4
deleted file mode 100644
index 8a86805..0000000
--- a/m4/lead-dot.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-## -*- Autoconf -*-
-# Copyright (C) 2003-2012 Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot. For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
- am__leading_dot=.
-else
- am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
diff --git a/t/subobj11a.sh b/t/subobj11a.sh
index ae02e59..3dbf52b 100755
--- a/t/subobj11a.sh
+++ b/t/subobj11a.sh
@@ -63,13 +63,7 @@ $AUTOMAKE -a
./configure --enable-dependency-tracking
$MAKE
-depdir=`sed -n 's/^ *DEPDIR *= *//p' Makefile`
-if test x"$depdir" != x; then
- depdir=src/$depdir
-else
- fatal_ "cannot extract value of DEPDIR from Makefile"
-fi
-
+depdir=src/.deps
ls -l "$depdir"
test -f "$depdir"/foo.Po
--
1.7.9.5
Re: [Automake-NG] [PATCH] [ng] cleanup: drop support for DJGPP, Windows 95/98/ME, MS-DOS, Stefano Lattarini, 2012/05/30