[Top][All Lists]

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

Allow += define without preceding = or := ?

From: Jan Kratochvil
Subject: Allow += define without preceding = or := ?
Date: Sat, 8 Nov 2003 19:43:10 +0100
User-agent: Mutt/1.4.1i


I am using some '.am' include file(s) for each directory for features like:

 * global: Provide '.h' files dependencies checking etc.
 * subdirectories: Compile different types of .c files with different options.
                   (library part vs. non-UNIX code vs. library clients etc.)

Therefore I need to 'append' ('+=') to some "primaries"/options from included
'.am' filse although I cannot predict such "primary"/option is already defined
('=' or ':=') by our parent

Currently I use empty pre-defines of all "primaries"/options used across the
project in one '' to solve it. Unfortunately it creates big and
slow ''s scattered across the directories.

* Solution #0: It is not an option to optimize empty "primaries" out of
  ''s as they should remain overridable from make(1) command-line
  even if set unconditionally as empty. I expect it would be possible to safely
  omit them if even the corresponding 'EXTRA_$&' variable would be empty/unset.

* Solution #1: Introduce some 'AUTOMAKE_OPTIONS' item to permit '+=' without
  preceding '=' or ':='.

Or did I miss something? Thanks for advice. Willing to possibly code it.

Jan Kratochvil

Jan Kratochvil; Captive: free r/w NTFS Filesystem;

reply via email to

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