-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 02 March 2004 06:06 pm, Davi de Castro Reis wrote:
Steven T. Hatton wrote:
Do you happen to know a way to dump all the targets in a Makefile in a way similar to Ant's -p (or older -projecthelp)?
You can try bash-completion, although not all the targets will be as usefull as you think.
I'm not sure I follow. Bash completion is something I think of doing on the command line.
Well, since I learned how to work with autotools I never looked at a Makefile again.
I still believe the underlying script should be intelligible. Scripting is typically an exercise in global variable reference and non-returning branch statements (GOTO). That's why people created strongly typed, structured programming languages, because the other way stinks.
Of course Ant is typically used for Java builds which do not target specific hardware platforms. It's bound to be less complicated. I suspect there are ways to create the Autotools files so they are much more coherent than they often turn out in real life.
I agree with you. But autotools is very old and very portable. There is no "let us rewrite from scratch" option. I really think that m4 was a bad choice. But you simply can't throw all the macros already written and tested in a huge amount of platforms. Ant is simpler, but the Java platform is also much more well-behaved.
It's not impossible that some, if not all, of that could be automatically translated into a different form. It might even be possible to programmatically identify linear dependence between different macros, and eliminate the redundant parts.
One other thing I'm not sure about is how to work the Qt moc stuff into a standard Autotools system.
Take a look at how kdevelop do it.
Sure. After I get this other stuff figured out. :-) Here's my list of commands that I have encountered working with autotools. It is by no means exhaustive, nor overly exclusive. It's just what seems relevant to learn when focusing on this topic: tools aclocal ar as autoconf autoheader automake autoreconf autoscan autoupdate configure doxygen imake install m4 make nm And a list of files in the root of a KDevelop project, significantly pruned: Files AUTHORS COPYING ChangeLog Doxyfile Doxyfile.am INSTALL Makefile.am Makefile.cvs Makefile.in NEWS README TODO acinclude.m4 aclocal.m4 autom4te.cache config.h.in configure.in configure.in.bot configure.in.in stamp-h.in
[]s Davi
Note that there is no mention of cvs other than the Makefile.cvs. No mention of ssh, ssh-keygen, ldconfig, /etc/ld.so.config, yacc/bison, sed, awk/gawk, and so on and so forth. STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFARDPhwX61+IL0QsMRAlkYAKC6jmY0USk4mc8JaTkqYXJGf3n5PACgzco7 ji++mayoSF+PU9mlREVuVzI= =/vKG -----END PGP SIGNATURE-----