Hi,
Jan Engelhardt jeng...@medozas.de writes:
On Monday 2009-03-09 15:57, Ralf Corsepius wrote:
For this patch, I'm unsure if we should even add it at all.
FWIW: I am opposed to it.
All this silencing stuff does is to add further potential sources of
errors.
Which ones,
Hi,
Andreas roe...@users.sf.net writes:
I just had an ingenious idea to limit conflicts in versioning systems.
When you specify a list of files for a rule you put every file in a line like
this.
fileA.c \
fileB.c \
fileC.c
One slightly ugly-looking approach I've seen is
Hi,
Jan Engelhardt jeng...@medozas.de writes:
On Monday 2008-12-22 21:36, Ralf Wildenhues wrote:
On Monday 2008-12-15 21:19, William Pursell wrote:
The make info pages mention that $? expands to “all the prerequisites
that are newer than the target”, and that sounds like there could be
Hi,
Monty Taylor [EMAIL PROTECTED] writes:
I've got a project that has 24 Makefile.am files. At the top of all of
them at the moment, I've got:
AM_CPPFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include
[snip]
PS. Yes...I know the -I$(top_builddir)/include is ridiculous... I
inherited
Hi,
Ralf Wildenhues Ralf.Wildenhues at gmx.de writes:
* Raja R Harinath wrote on Thu, Jun 28, 2007 at 03:13:15PM CEST:
I'm attaching a series of patches adding support for Mono/.NET/ECMA-335
(also called the CLI, common language infrastructure).
I'm working on documenting
Hi,
I'm attaching a series of patches adding support for Mono/.NET/ECMA-335
(also called the CLI, common language infrastructure).
I'm working on documenting the support, but the testcases show example usage.
- Hari
/ChangeLog
@@ -1,3 +1,14 @@
+2007-06-27 Raja R Harinath [EMAIL PROTECTED]
+
+ Add basic support for Mono/.NET
+ * automake.in (register_language): Add 'cli'.
+ (handle_cli, handle_cli_assembly, lang_cli_rewrite): New.
+ (generate_makefile): Call 'handle_cli'.
+ * lib/am
/cli3.test | 46 +
5 files changed, 155 insertions(+), 2 deletions(-)
create mode 100755 tests/cli3.test
diff --git a/ChangeLog b/ChangeLog
index ec49428..2e75139 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
2007-06-27 Raja R Harinath [EMAIL PROTECTED
2e75139..07e7edb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2007-06-28 Raja R Harinath [EMAIL PROTECTED]
+
+ Add a convenience autoconf macro (AM_PROG_CLI) to help with matters.
+ * automake.in (register_language): Add Nemerle (.n) and Boo (.boo)
+ as languages
Hi,
I got a chance to work on automake after 4 years :-)
As part of the Novell HackWeek, I'm working on a set of patches to add native
support for Mono/.NET assemblies to automake. I have a promising start, and
would like to get some comments. I'll try to post the in-work patches onto the
$CFLAGS and $CPPFLAGS, while the second only uses
$CPPFLAGS. If you have some -I and -D in your $CFLAGS, the results
will differ.
(I'm not justifying the double check. I'm just saying that the second
is not entirely redundant :-)
- Hari
--
Raja R Harinath -- [EMAIL
That seems a roundabout way to do it. Just copy the check-TESTS rule
into your Makefile.am file, and automake won't generate its internal
rule. You can customize your local copy of check-TESTS to your
heart's content.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
Hi,
Andrew Suffield [EMAIL PROTECTED] writes:
On Mon, Jul 28, 2003 at 05:55:15PM -0500, Raja R Harinath wrote:
Andrew Suffield [EMAIL PROTECTED] writes:
[snip autoreconf/autopoint/AM_GNU_GETTEXT([external]) dicussion]
All that does is stop including a complete copy of libintl in your
that only when you ask for 'gettext'. On most modern
machines, esp. on Debian, you should replace
AM_GNU_GETTEXT
with
AM_GNU_GETTEXT_VERSION([0.12.1]) # or appropriate version
AM_GNU_GETTEXT([external])
and thinks will be peachier.
- Hari
--
Raja R Harinath
Andrew Suffield [EMAIL PROTECTED] writes:
On Mon, Jul 28, 2003 at 05:33:43PM -0500, Raja R Harinath wrote:
Andrew Suffield [EMAIL PROTECTED] writes:
autoreconf has a habit of doing silly things like running autopoint,
which then cheerfully adds a bunch of gunk to the source tree which
with spaces in GNUmakefile.am.
In that case, the generated rules have to be space-clean. I think
it's worthwhile to consider Ralf's patch after he addresses some of my
comments.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
\
$(top_srcdir)/src/lib/libLib.a
I think you mean $(top_builddir). $(top_srcdir) is used to refers to
source files.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
figure out that a library is part of link line, for
example when the list of libraries is AC_SUBSTed in.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
' in the autoconf documentation.
The answer's in there.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
CHANGES.html
make
and have CHANGES.html recreated.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
Hi,
Raja R Harinath [EMAIL PROTECTED] writes:
[snip]
$(html_DATA): .html-stamp
if test -f $@; then :; else rm -f $; done
That should read:
if test -f $@; then :; else rm -f $; $(MAKE) .html-stamp; done
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
Hi,
Bill Moseley [EMAIL PROTECTED] writes:
On Fri, 4 Apr 2003, Raja R Harinath wrote:
Hi,
Raja R Harinath [EMAIL PROTECTED] writes:
[snip]
$(html_DATA): .html-stamp
if test -f $@; then :; else rm -f $; done
That should read:
if test -f $@; then :; else rm -f $; $(MAKE
scripts are listed in check_TESTS.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
the
right thing.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
)/bar.idl.Pcc
It can just add these files to the DEP_FILES variable, and have the
'include' lines automatically added.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
$# in 0) exec @PERL@ -S $0;; *) exec @PERL@ -S $0 $@;; esac'
-if 0;
-
This is to re-execute the script with Perl in case somehow a Bourne
shell started executing this script.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
about the EXTRA_LTLIBRARIES line. You
don't need that line, since automake is supposed to figure it out
itself. I'm not sure whether it's a bug or not.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our
Raja R Harinath [EMAIL PROTECTED] writes:
Roger Leigh [EMAIL PROTECTED] writes:
I'm getting this warning from automake:
roger@whinlatter:~/gimp-print/newbuild$ automake
automake: both `configure.ac' and `configure.in' present: ignoring `configure.in'
automake: src/main/Makefile.am
implementations. If you look at the Makefile,
you'll see that it is checking to see whether 'make' said that the
source file was in $(srcdir), and if not, the 'echo' supplies the
$(srcdir).
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions
Hi,
Tom Tromey [EMAIL PROTECTED] writes:
Hari == Raja R Harinath [EMAIL PROTECTED] writes:
Hari That code is there support non-srcdir builds in the face of
Hari 'make's with broken VPATH implementations. If you look at the
Hari Makefile, you'll see that it is checking to see whether 'make
Hi,
Tom Tromey [EMAIL PROTECTED] writes:
Hari == Raja R Harinath [EMAIL PROTECTED] writes:
Hari Akim once suggested adding a facility to hook commands to files
Hari listed in AC_CONFIG_FILES.
The problem with this idea is that the information about which files
is known when automake
the above command is that it is
safe to invoke the 'depfiles' CONFIG_COMMAND only in some cases, and
at the time 'automake' emits the Makefile regeneration code, it
doesn't know if it's safe yet. So, here goes:
From Raja R Harinath [EMAIL PROTECTED]
* automake.in (handle_languages): Emit
' wrapper scripts are in the 'tests'
directory. You can use that approach in other places too.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
= $(libexecdir)/cgi-bin
cgibinexec_PROGRAMS = mumble
so that things work as expected with 'make install-exec'.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing
where you ran 'make dist' or 'make distcheck'.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
);
+ }
}
+++$automake_has_run;
}
+while ($automake_needs_to_reprocess_all_files);
This doesn't look like it'll work with, say
automake --add-missing src/Makefile
This won't add 'depcomp' to DIST_COMMON in the top Makefile.in.
- Hari
--
Raja R Harinath -- [EMAIL
by the 'configure' scripts, even if the build
will not enter those directories.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
in a 'setup-boot' target to do this, and
ask people to explicitly invoke that rule to integrate your program
into the boot setup.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when
?
Is AM_SET_DEPDIR properly invoked in init.m4?
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
definitely not intended as a generic mechanism to support
Makefile includes.
After all, automake already has it's own support for including
makefile fragments -- and that mechanism is already portable to
'make's that don't support any form of 'include's.
- Hari
--
Raja R Harinath
], [$vcond]);
This would then be,
if ! conditionals_true_when(@parent_conds, $vcond)
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
Tom Tromey [EMAIL PROTECTED] writes:
Hair == Raja R Harinath [EMAIL PROTECTED] writes:
Clark test_SOURCES = d1/s1.cc d2/s2.cc
Hair Try using
Hair AUTOMAKE_OPTIONS = subdir-objects
subdir-objects will cause Makefile to build d1/s1.o and d2/s2.o.
Without it, the above test_SOURCES
Hi,
The recently added ASSIGNMENT_PATTERN is a little too greedy. Given
FOO=-DBAR=baz
it incorrectly matches the macro name to be 'FOO=-DBAR' rather than
just 'FOO'.
Here's an obvious fix, and a possible testcase.
from Raja R Harinath [EMAIL PROTECTED]
* automake.in
in BUILT_SOURCES or not.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
Thomas Dickey [EMAIL PROTECTED] writes:
On Thu, Apr 05, 2001 at 10:32:02PM -0500, Raja R Harinath wrote:
Well -- the whole idea is to remove the rule targets. I know of only
one use of multiple colons on a line -- in GNU make. Even there,
everything before a ':' is a rule target. My
"Lars J. Aas" [EMAIL PROTECTED] writes:
On Thu, Apr 05, 2001 at 05:36:48PM -0500, Raja R Harinath wrote:
: The following patch fixes a problem with CVS autoconf, if a recent
: enough CVS snapshot of automake was used on it.
This is my proposal. @PACKAGE doesn't seem to
'
+# is present in configure.in. However, some versions don't -- they
+# depend on the fact that aclocal.m4 will have lines that subst them in.
+# Some of those versions also don't understand 'm4_include'.
+# Help them along.
+AC_SUBST(PACKAGE)
+AC_SUBST(VERSION)
- Hari
--
Raja R Harinath
'
again seems to fix it.
Unfortunately, the output of make is redirected to /dev/null. My
suspicion is that this could do with the timestamp warning sometimes
emitted by GNU make. Is the directory NFS mounted from a Solaris m/c?
- Hari
--
Raja R Harinath -- [EMAIL PROTE
e are supressed when you run GNU make
with the '-s' option. (The -s option was present in Unix 7th Edition
too, so it can pretty much be used with impunity.)
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Ca
-compile ($options{'compile'}) if exists $options{'compile'};
# ...
delete $options{$_} for (('ansi', 'autodep', 'compile', ...));
complain(...) if (keys %options);
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instruc
Hi,
Akim Demaille [EMAIL PROTECTED] writes:
Raja R Harinath [EMAIL PROTECTED] writes:
[snip]
| Wouldn't this be more compact and readable without the loop?
|
| $lang_obj-ansi($options{'ansi'})if exists $options{'ansi'};
| $lang_obj-autodep ($options{'autodep'}) if exists
lso need to trust the compiler not to convert
relative include paths to absolute while generating dependencies.
Since, in this case, the compiler is "known", this isn't an issue.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
d for automatic dependency generation
support. Previous versions of automake supported dependency
generation with GNU make, GCC, and only by the "maintainer". With
'depcomp', automake now supports dependency generation with more
'make's, more compilers, and at the "user"
looks slightly
peculiar, but it matches similar 'if's used in the rest of the file.)
from Raja R Harinath [EMAIL PROTECTED]
* depcomp (gcc3): Protect against the compiler deleting
the dependency output file.
Index: depcomp
Hi,
Raja R Harinath [EMAIL PROTECTED] writes:
GCC 3.0 doesn't still exactly implement exactly what 'depcomp' wants.
The problem is that if the compile fails, the file specified to -MF is
deleted too. With 'gcc -MF $depfile', $depfile is deleted. But,
$depfile is eventually included
=$@
rather than depend on specific details of the implementation of
config.status.
I've attached a patch only to revert the CONFIG_COMMANDS case. I
think the CONFIG_LINKS= part in the above is harmless.
- Hari
from Raja R Harinath [EMAIL PROTECTED]
* automake.in (handle_configure): Revert
to current 'automake' behaviour. IIRC, if automake
sees a "special" target in Makefile.am, it won't generate code for
that target. E.g., if the Makefile.am has a 'check:' target, the
builtin test harness will not be generated.
- Hari
--
Raja R Harinath ---
think) from Debian.
It is essentially an LD_PRELOAD that overrides getuid/open etc. and
makes a process think that it's executing as root.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
&
; '
. 's/\@VTEXI\@/' . $vtexi . '/g;'
. 's,\@MDDIR\@,' . $conf_pat . ',g;',
'texi-vers');
Note the lack of the @CONFIGURE_AC@ transform.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instruc
this is a GCC bug, not a problem with 'automake'. For some
reason, it is treating the -c as a -E.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When all else fails, read the instructions. -- Cahn's Axiom
Our policy is, when in doubt, do the right thing. -- Roy L Ash
.)
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
btoolize_files, 'ltconfig',
+ 'ylwrap', 'acinclude.m4', @libtoolize_files, @libtoolize_sometimes,
'missing', 'depcomp', 'compile', 'py-compile'
);
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
, which I don't see as being too onerous.
BTW, why do you need to 'configure' or 'sed' substitute a version
number into a .c file -- you already have config.h which defines the
symbol 'VERSION' to the version number string.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
When
):foo-bot.in
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
configure run into $prefix. The proper home for such
beasts is $exec_prefix. It would be nice if there was an
$(execincludedir) [= $(exec_prefix)/include].
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions."
foo
@MK@else
bar
@MK@endif
However, you cannot put in automake magic variables (things like
foo_SOURCES, foo_LDFLAGS, etc) inside an ifeq/else/endif. Rather, you
can, but automake will get extremely confused if you do ;-)
- Hari
--
Raja R Harinath ---
cumstances, this example won't really
cause problems, even with both config.h being included.)
And, then we have the problem of having anything depending on the
output of config.status going into $prefix rather than $exec_prefix.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
necessary in ~/ since I don't have any code there?
Actually it is needed only there, and not in the source directories.
You just need one copy of the script per tree. 'automake' appears to
be buggy.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails,
, or it may have had the results for a
different compiler.
- Hari
--
Raja R Harinath -- [EMAIL PROTECTED]
"When all else fails, read the instructions." -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing." -- Roy L Ash
to specify a special installer if
they choose. Of course, it would be nice if 'install' in fileutils
could be extended to provide a --only-if-change option.
Usage would be something like
make INSTALL_HEADER='install --only-if-change' install
- Hari
--
Raja R Harinath
70 matches
Mail list logo