automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [PATCH 0/4] Prefer pattern rules over suffix rules


From: Stefano Lattarini
Subject: [Automake-NG] [PATCH 0/4] Prefer pattern rules over suffix rules
Date: Thu, 10 May 2012 14:29:46 +0200

Pattern rules are cleaner, safer, and vouched for in the GNU make manual
itself.  Supporting them instead of suffix rules will also allow us to
simplify a little the automake script, auxiliary perl modules, and
documentation.
    
This change introduces a slight backward-incompatibility now, in that
user provided definitions of the SUFFIXES variable or of the .SUFFIXES
target, as well as old-fashioned suffix rules, are now rejected.
    
Automake-NG still tries to parse and understand suffix-based pattern
rules though, to retain support for user-added file extensions in the
_SOURCES variables (see "Handling new file extensions" in the Automake
manual).

-*-*-

As usual, I will push to 'ng/master' in 72 hours if there is no
review by then.

Regards,
  Stefano

-*-*-

Stefano Lattarini (4):
  [ng] am: prefer pattern rules over old-fashioned suffix rules
  [ng] rules: can pass deps to &Automake::Rule::define
  [ng] rules: forbid old-fashioned suffix rules, prefer pattern rules
  [ng] cleanup: &Automake::Variable::hook is unused, remove it

 NG-NEWS                                 |   31 +++++++++++
 automake.in                             |   64 +++++------------------
 doc/automake.texi                       |   50 ++++++------------
 lib/Automake/Rule.pm                    |   86 +++++++++++--------------------
 lib/Automake/Variable.pm                |   27 ----------
 lib/am/depend2.am                       |    6 +--
 lib/am/footer.am                        |    3 ++
 lib/am/lang-compile.am                  |    8 ++-
 lib/am/lex.am                           |    2 +-
 lib/am/texibuild.am                     |    8 +--
 lib/am/texinfos.am                      |    2 +-
 lib/am/yacc.am                          |    2 +-
 t/amopts-variable-expansion.sh          |   11 ++--
 t/cxx.sh                                |   34 ------------
 t/ext.sh                                |   16 +++---
 t/ext3.sh                               |   39 --------------
 t/nodep.sh                              |   40 --------------
 t/objc-basic.sh                         |    4 +-
 t/objcxx-basic.sh                       |    4 +-
 t/parallel-tests8.sh                    |    2 +-
 t/specflg10.sh                          |    5 +-
 t/{suffix-chain.tap => suffix-chain.sh} |   26 +++++-----
 t/{suffix6c.sh => suffix-obj.sh}        |   11 ++--
 t/suffix-rules-reject.sh                |   55 ++++++++++++++++++++
 t/suffix.sh                             |   14 ++---
 t/{suffix10.tap => suffix10.sh}         |   25 ++++-----
 t/suffix11.tap                          |   75 ---------------------------
 t/suffix12.sh                           |    9 ++--
 t/suffix13.sh                           |   12 ++---
 t/suffix2.sh                            |   17 +++---
 t/{suffix3.tap => suffix3.sh}           |   29 +++++------
 t/suffix4.sh                            |   39 --------------
 t/suffix5.sh                            |    2 +-
 t/suffix6.sh                            |   63 ----------------------
 t/suffix6b.sh                           |   74 --------------------------
 t/suffix7.sh                            |   37 -------------
 t/{suffix8.tap => suffix8.sh}           |   32 +++++-------
 t/suffix9.sh                            |    8 +--
 t/txinfo6.sh                            |    2 +-
 t/warning-groups-win-over-strictness.sh |    9 ++--
 t/warnings-override.sh                  |   20 ++++---
 t/warnings-precedence.sh                |   20 ++++---
 t/warnings-strictness-interactions.sh   |   15 +++---
 t/warnings-win-over-strictness.sh       |   16 +++---
 44 files changed, 318 insertions(+), 736 deletions(-)
 delete mode 100755 t/cxx.sh
 delete mode 100755 t/ext3.sh
 delete mode 100755 t/nodep.sh
 rename t/{suffix-chain.tap => suffix-chain.sh} (73%)
 rename t/{suffix6c.sh => suffix-obj.sh} (93%)
 create mode 100755 t/suffix-rules-reject.sh
 rename t/{suffix10.tap => suffix10.sh} (80%)
 delete mode 100755 t/suffix11.tap
 rename t/{suffix3.tap => suffix3.sh} (73%)
 delete mode 100755 t/suffix4.sh
 delete mode 100755 t/suffix6.sh
 delete mode 100755 t/suffix6b.sh
 delete mode 100755 t/suffix7.sh
 rename t/{suffix8.tap => suffix8.sh} (77%)

-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]