This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

extending Automake with a custom primary


Hi,

I want to extend Automake with my own primary.  I am writing to ask if
Automake can be customized this way.  I would like to write in
Automake.am:

VPSRC = @VPSRC@
noinst_VPBUILD = vorpal_ser vorpal_par
vorpal_ser_CONFFLAGS = --disable-mpi
vorpal_par_CONFFLAGS = --enable-mpi

My primary would be "VPBUILD", and I would pass some parameters with
"CONFFLAGS" to build a particular target (vorpal_ser or vorpal_par).
The example above would instruct Automake (and my custom macros) to
create two directories: "vorpal_ser" and "vorpal_par".  In each of
these two directories our software would be configured with different
flags (the flags would be given with "CONFFLAGS") and then built.  The
variable "VPSRC" would be used in the process of configuring and
building.


Thanks & best,
Irek





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]