[3120] | 1 | we can't seem to AC_SUBST(pkgdatadir)
|
---|
| 2 | the version from header-vars overrides
|
---|
| 3 | why is that?
|
---|
| 4 |
|
---|
| 5 | check should depend on all
|
---|
| 6 | from ben elliston
|
---|
| 7 |
|
---|
| 8 | the new YFLAGS code doesn't correctly handle srcdir
|
---|
| 9 |
|
---|
| 10 | allow foo_NAME to rename an object (library or program)
|
---|
| 11 | at build/install time
|
---|
| 12 |
|
---|
| 13 | remove _LTLIBRARIES and just use _LIBRARIES
|
---|
| 14 | then use this for zip/jar as well
|
---|
| 15 |
|
---|
| 16 | for 1.5
|
---|
| 17 | investigate problems with conditionally defined libraries
|
---|
| 18 |
|
---|
| 19 | add an error if the user makefile.am violates our
|
---|
| 20 | namespace rules
|
---|
| 21 |
|
---|
| 22 | we need a document describing automake from the end user's point of view
|
---|
| 23 | eg describe INSTALL_HEADER there, among other things
|
---|
| 24 |
|
---|
| 25 | * maintainer-clean
|
---|
| 26 |
|
---|
| 27 | Akim:
|
---|
| 28 | > @@ -31,5 +31,9 @@
|
---|
| 29 | > DISTCLEAN -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
|
---|
| 30 | >
|
---|
| 31 | > maintainer-clean-generic:
|
---|
| 32 | > +## FIXME: shouldn't we really print these messages before running
|
---|
| 33 | > +## the dependencies?
|
---|
| 34 | > + @echo "This command is intended for maintainers to use"
|
---|
| 35 | > + @echo "it deletes files that may require special tools to rebuild."
|
---|
| 36 | > -rm -f Makefile.in
|
---|
| 37 |
|
---|
| 38 | Tom:
|
---|
| 39 | > I'd like to eventually fix the FIXME comment by having
|
---|
| 40 | > maintainer-clean look like:
|
---|
| 41 | >
|
---|
| 42 | > maintainer-clean:
|
---|
| 43 | > @echo ...
|
---|
| 44 | > $(MAKE) whatever
|
---|
| 45 | >
|
---|
| 46 | > We're left with the question of whether we should repeat them in every
|
---|
| 47 | > subdir.
|
---|
| 48 |
|
---|
| 49 | *
|
---|
| 50 | Alexandre Oliva:
|
---|
| 51 | > Hmm... Interesting. It must have been a side effect of the enabling
|
---|
| 52 | > of forced `relink' on GNU/Linux/x86. Anyway, on platforms that
|
---|
| 53 | > actually require relinking, this problem remains, and I see no way to
|
---|
| 54 | > overcome it other than arranging for automake to install libraries
|
---|
| 55 | > before executables, as you suggest. This shouldn't be a big problem,
|
---|
| 56 | > anyway.
|
---|
| 57 | >
|
---|
| 58 | > A bigger problem could show up if two libraries in the same directory,
|
---|
| 59 | > one dependent on the other, are installed concurrently. If relinking
|
---|
| 60 | > is needed for the dependent library, we have a problem. It appears to
|
---|
| 61 | > me that user will have to live without `make -j install', in this
|
---|
| 62 | > case.
|
---|
| 63 |
|
---|
| 64 | Alex Hornby
|
---|
| 65 | > Here's an Automake patch and changelog entry allow make -j install on
|
---|
| 66 | > such degenerate systems (and Linux with buggy libtool <g>)
|
---|
| 67 | >
|
---|
| 68 | > If you install to locations other that bin_ and lib_ then a larger fix
|
---|
| 69 | > is necessary, but this should fix the 90% case.
|
---|
| 70 |
|
---|
| 71 | * think about how per-object flags should work. in particular:
|
---|
| 72 | * how should they be specified?
|
---|
| 73 | using the object name is confusing when .lo/.obj in use
|
---|
| 74 | however, the object name provides a nice interaction with
|
---|
| 75 | per-exe flags
|
---|
| 76 | * how should they interact with per-executable flags?
|
---|
| 77 | [ this is probably a feature in search of a problem ]
|
---|
| 78 |
|
---|
| 79 | * cross-compilation support:
|
---|
| 80 | programs built and used by the build process need to be
|
---|
| 81 | built for CC_FOR_BUILD
|
---|
| 82 | introduce a new prefxi for this, e.g. `build_PROGRAMS'
|
---|
| 83 | [ we can do this in an automatic way I think.
|
---|
| 84 | unfortunately it isn't that useful until autoconf has support
|
---|
| 85 | for this sort of thing as well ]
|
---|
| 86 |
|
---|
| 87 | * distcheck should make sure that each file that uses _() is
|
---|
| 88 | listed in POTFILES.in
|
---|
| 89 | From Jim Meyering:
|
---|
| 90 | # Verify that all source files using _() are listed in po/POTFILES.in.
|
---|
| 91 | po-check:
|
---|
| 92 | grep -E -v '^(#|$$)' po/POTFILES.in | sort > $@-1
|
---|
| 93 | grep -E -l '\b_\(' lib/*.c src/*.c | sort > $@-2
|
---|
| 94 | diff -u $@-1 $@-2
|
---|
| 95 | rm -f $@-1 $@-2
|
---|
| 96 |
|
---|
| 97 | * one performance enhancement would be to have autoconf write
|
---|
| 98 | a single file containing all the macro assignments.
|
---|
| 99 | then read this file via `include'
|
---|
| 100 | unfortunately this can't be done because of conditionals
|
---|
| 101 | -- but it could be made to work if we also changed:
|
---|
| 102 | * automake to rewrite @FOO@ to $(FOO), and
|
---|
| 103 | * the implementation of conditionals to rely on some new
|
---|
| 104 | config.status magic
|
---|
| 105 |
|
---|
| 106 | * support prog_LIBS as override for LIBS
|
---|
| 107 |
|
---|
| 108 | * Test subdir-objects option with yacc, lex, ansi2knr
|
---|
| 109 | Our locking scheme won't prevent a parallel make from losing
|
---|
| 110 | if there are two `bar.o' files and the timing is just right
|
---|
| 111 | This only happens with parallel make and no-`-c -o' compiler,
|
---|
| 112 | so it probably isn't very important
|
---|
| 113 | `-c -o' when doing libtool
|
---|
| 114 | try to find a losing compiler and see if it really works.
|
---|
| 115 | (actually: hack config.cache and do it)
|
---|
| 116 |
|
---|
| 117 | * per-exe flags
|
---|
| 118 | ** We're using `$<' in explicit rules when using per-exe flags
|
---|
| 119 | ** per-exe flags don't work for CPPFLAGS/YFLAGS/LFLAGS. Fix.
|
---|
| 120 | ** LIBOBJS shouldn't be used when there are per-exe flags (?)
|
---|
| 121 |
|
---|
| 122 | * Test nodist_SOURCES with lex, yacc, etc.
|
---|
| 123 |
|
---|
| 124 | * Support subdir-objects with fortran
|
---|
| 125 |
|
---|
| 126 | * Allow creation of Java .zip/.jar files in natural way
|
---|
| 127 | If you are building a compiled Java library, then the .zip/.jar
|
---|
| 128 | ought to be made automatically.
|
---|
| 129 |
|
---|
| 130 | * Run automake before libtool. It will report an error but
|
---|
| 131 | still won't put the file into the disty. This is wrong.
|
---|
| 132 | From Mark H Wilkinson <mhw@kremvax.demon.co.uk>
|
---|
| 133 |
|
---|
| 134 | * in gnu/gnits mode, give error if Makefile.am overrides a user
|
---|
| 135 | variable like CFLAGS.
|
---|
| 136 | [ this is low priority because the package author can always
|
---|
| 137 | circumvent our check by redefining in configure.in
|
---|
| 138 | plus it is probably better to encourage good behavior than to
|
---|
| 139 | punish bad ]
|
---|
| 140 |
|
---|
| 141 | * examine possibility of using any character in a macro name
|
---|
| 142 | and rewriting names automatically. this means we must rewrite
|
---|
| 143 | all references as well.
|
---|
| 144 | [ this is a 2.0-style feature ]
|
---|
| 145 |
|
---|
| 146 | * AM_CONFIG_HEADER might generate the wrong stamp file names
|
---|
| 147 | when given multiple headers. Write a test.
|
---|
| 148 |
|
---|
| 149 | * Currently don't correctly handle multiple inputs to a config header.
|
---|
| 150 | [ this should no matter in the future as acconfig.h and so on are
|
---|
| 151 | obsoleted by the AH series of macros.]
|
---|
| 152 |
|
---|
| 153 | * `distcheck' and `dist' should depend on `all'
|
---|
| 154 |
|
---|
| 155 | * Add code to generate foo-config script like gnome, gtk
|
---|
| 156 |
|
---|
| 157 | * document user namespace for macro/target names
|
---|
| 158 | adopt some conventions and use uniformly
|
---|
| 159 | [ this is a good thing for the rewrite ]
|
---|
| 160 |
|
---|
| 161 | * make distcheck uses directories like `=build'.
|
---|
| 162 | Some (very rare) POSIX systems don't support `=' in filenames.
|
---|
| 163 | If this ever becomes a problem, fix it
|
---|
| 164 |
|
---|
| 165 | * distclean must remove config.status
|
---|
| 166 | can't this cause problems for maintainer-clean?
|
---|
| 167 | shouldn't maintainer-clean print the message before running
|
---|
| 168 | any part of the make? (just to slow things down long enough
|
---|
| 169 | for the user to stop it)
|
---|
| 170 | (maybe doesn't matter since people who even know about
|
---|
| 171 | maintainer-clean already have a clue)
|
---|
| 172 |
|
---|
| 173 | * reintroduce AM_FUNC_FNMATCH which sets LIBOBJS
|
---|
| 174 | Then have automake know about fnmatch.h.
|
---|
| 175 | [ probably should wait for autoconf to get right functionality ]
|
---|
| 176 |
|
---|
| 177 | * "make diff" capability
|
---|
| 178 | look at gcc's Makefile.in to see what to do
|
---|
| 179 | or look at maint program
|
---|
| 180 |
|
---|
| 181 | * in --cygnus, clean-info not generated at top level
|
---|
| 182 |
|
---|
| 183 | * what if an element of a scanned variable looks like
|
---|
| 184 | $(FOO).$(BAR) ?
|
---|
| 185 | or some other arbitrary thing?
|
---|
| 186 | right now we try to cope, but not very well
|
---|
| 187 | [ this is only of theoretical interest for now ]
|
---|
| 188 |
|
---|
| 189 | * make sure every variable that is used is also defined
|
---|
| 190 | [ we don't really look at variable uses in detail.
|
---|
| 191 | 2.0 thing ]
|
---|
| 192 |
|
---|
| 193 | * make sure `missing' defines are generated
|
---|
| 194 |
|
---|
| 195 | * missing should handle install -d and rmdir -p (for uninstall)
|
---|
| 196 |
|
---|
| 197 | * NORMAL_INSTALL / NORMAL_UNINSTALL -vs- recursive rules
|
---|
| 198 | [ requires changes to the standard ]
|
---|
| 199 |
|
---|
| 200 | * copyrights on m4 files, aclocal output
|
---|
| 201 |
|
---|
| 202 | * should not put texiname_TEXINFOS into distribution
|
---|
| 203 | should rename this macro anyway, to foo_texi_DEPENDENCIES
|
---|
| 204 |
|
---|
| 205 | * For now I guess I'll just have automake give an error if it encounters
|
---|
| 206 | non-C source in a libtool library specification.
|
---|
| 207 |
|
---|
| 208 | * must split $obj into two parts: one for libtool and one for
|
---|
| 209 | deansification. Otherwise .S files will be deansified!
|
---|
| 210 |
|
---|
| 211 | * ansi2knr must currently appear in a directory that has some source
|
---|
| 212 |
|
---|
| 213 | * if program has the same name as a target, do something sensible:
|
---|
| 214 | - if the target is internal, rename it
|
---|
| 215 | - if the target is mandated (eg, "info"), tell the user
|
---|
| 216 | consider auto-modifying the program name to work around this
|
---|
| 217 |
|
---|
| 218 | * should separate actual options from strictness levels
|
---|
| 219 | strictness should only cover requirements
|
---|
| 220 | You should be able to pick and choose options
|
---|
| 221 |
|
---|
| 222 | * rewrite in guile (RMS request)
|
---|
| 223 | at the same time, consider adding a GUI
|
---|
| 224 | could use the same parsing code for the GUI and the standalone version
|
---|
| 225 | that means figuring out a better representation of internal state
|
---|
| 226 | [ that's easy -- anything is better than what we have now ]
|
---|
| 227 |
|
---|
| 228 | having just one Makefile for a project would give a big speed increase
|
---|
| 229 | for a project with many directories, eg glibc. ideally (?) you'd
|
---|
| 230 | still be able to have a Makefile.am in each directory somehow; this
|
---|
| 231 | might make editing conceptually easier.
|
---|
| 232 |
|
---|
| 233 | * finish up TAGS work
|
---|
| 234 |
|
---|
| 235 | * only remove libtool at top level?
|
---|
| 236 |
|
---|
| 237 | * clean up source directory by moving stuff into subdirs
|
---|
| 238 |
|
---|
| 239 | * consider adding pkglibexecdir, maybe others?
|
---|
| 240 | requests for pkg-dirs with version included
|
---|
| 241 |
|
---|
| 242 | Avoid loops when installing; instead unroll them in automake
|
---|
| 243 | [ Impossible when @AC_SUBST@ values are used. ]
|
---|
| 244 |
|
---|
| 245 | * for new autoconf:
|
---|
| 246 | * completely handle multi-":" mode for AC_CONFIG_HEADER
|
---|
| 247 | * Scan multiple input files when Makefile is generated?
|
---|
| 248 | This would provide flexibility for large projects; subsumes
|
---|
| 249 | the "Makefile.tmpl" idea
|
---|
| 250 |
|
---|
| 251 | [ can't do this. must explain why in manual.
|
---|
| 252 | basically, solving all the problems is too hard
|
---|
| 253 | like: how to remove redundancies between generated .in files
|
---|
| 254 | instead should implement `include' directive for Makefile.am ]
|
---|
| 255 | * for multi-":" mode and AC_OUTPUT, it might be good to pick the
|
---|
| 256 | first input file that has a corresponding .am file.
|
---|
| 257 |
|
---|
| 258 | Some long-term projects:
|
---|
| 259 | * if $(FOO) is used somewhere, ensure FOO is defined, either by
|
---|
| 260 | user or by automake if possible
|
---|
| 261 |
|
---|
| 262 | [ include, += support ]
|
---|
| 263 | * even better would be allowing targets in different included
|
---|
| 264 | fragments to be merged. e.g., `install-local'.
|
---|
| 265 |
|
---|
| 266 | consider putting all check-* targets onto @check?
|
---|
| 267 |
|
---|
| 268 | take diff-n-query code from libit
|
---|
| 269 |
|
---|
| 270 | Per Bothner says:
|
---|
| 271 | Per> 1) Being able to build a set of non-source programs
|
---|
| 272 | Per> from source programs, without necessarily linking them together.
|
---|
| 273 | Per> I.e. one should be able to say something like:
|
---|
| 274 | Per> dummy_SOURCES=foo.c bar.c
|
---|
| 275 | Per> and automake should realize that it needs to build foo.o and bar.o.
|
---|
| 276 | Per> 2) Being intelligent about new kinds of suffixes.
|
---|
| 277 | Per> If it sees:
|
---|
| 278 | Per> SUFFIXES = .class .java
|
---|
| 279 | Per> and a suffix rule of the form:
|
---|
| 280 | Per> .java.class:
|
---|
| 281 | Per> then it should be able to realize it can build .class files from
|
---|
| 282 | Per> .java files, and thus be able to generate a list of
|
---|
| 283 | Per> .class files from a list of .java source files.
|
---|
| 284 | [What Per wanted here was a way to have automate automatically follow
|
---|
| 285 | suffix rules. So for instance if you had a `.x.y:' rule, and automake
|
---|
| 286 | saw a `.x' file, it would automatically build and install the
|
---|
| 287 | corresponding `.y' file.]
|
---|
| 288 |
|
---|
| 289 | !! Must fix require_file stuff. It is really gross, and I don't
|
---|
| 290 | understand it any more.
|
---|
| 291 |
|
---|
| 292 | Jim's idea: should look for @setfilename and warn if filenames too long
|
---|
| 293 | * guess split size
|
---|
| 294 |
|
---|
| 295 | from joerg-martin schwarz:
|
---|
| 296 | -- If Makefile.am contains $(CC), $(COMPILE), $(YLWRAP), ....
|
---|
| 297 | in an explicitly written rule, you should emit the corresponding
|
---|
| 298 | Makefile variables automatically.
|
---|
| 299 |
|
---|
| 300 | Configuring in the large:
|
---|
| 301 | * allow hierarchy of dirs to share one aclocal.m4
|
---|
| 302 | How?
|
---|
| 303 |
|
---|
| 304 | consider printing full file name of Makefile.am or configure.in when
|
---|
| 305 | giving error. This would help for very large trees with many
|
---|
| 306 | configure.in scripts
|
---|
| 307 |
|
---|
| 308 | From the GNU Standards. These things could be checked, and probably
|
---|
| 309 | should be if --gnu.
|
---|
| 310 | * Make sure that the directory into which the distribution unpacks (as
|
---|
| 311 | well as any subdirectories) are all world-writable (octal mode 777).
|
---|
| 312 | * Make sure that no file name in the distribution is more than 14
|
---|
| 313 | characters long.
|
---|
| 314 | * Don't include any symbolic links in the distribution itself.
|
---|
| 315 | (ditto hard links)
|
---|
| 316 | * Make sure that all the files in the distribution are world-readable.
|
---|
| 317 | * standards no longer prohibit ANSI C. What does this imply
|
---|
| 318 | for the de-ansi-fication feature? [ must keep it -- some users rely on it ]
|
---|
| 319 |
|
---|
| 320 | should be able to determine what is built by looking at rules (and
|
---|
| 321 | configure.in). Then built man pages (eg) could automatically be
|
---|
| 322 | omitted from the distribution.
|
---|
| 323 |
|
---|
| 324 | Consider: "cvs" option adds some cvs-specific rules?
|
---|
| 325 |
|
---|
| 326 | Right now, targets generated internally (eg "install") are not
|
---|
| 327 | overridable by user code. This should probably be possible, even
|
---|
| 328 | though it isn't very important. This could be done by generating all
|
---|
| 329 | internal rules via a function call instead of just appending to
|
---|
| 330 | $output_rules.
|
---|
| 331 | [ this will be harder to implement when scanning a rule like all-recursive
|
---|
| 332 | from subdirs.am ]
|
---|
| 333 |
|
---|
| 334 | * Should be a way to have "nobuild_PROGRAMS" which aren't even built,
|
---|
| 335 | but which could be by running the magic make command.
|
---|
| 336 | [ How does it differ from EXTRA_PROGRAMS? ]
|
---|
| 337 |
|
---|
| 338 | Other priorities:
|
---|
| 339 | * Must rewrite am_install_var. Should break into multiple functions.
|
---|
| 340 | This will allow the callers to be a little smarter.
|
---|
| 341 | * Rewrite clean targets.
|
---|
| 342 | * Fix up require_file junk.
|
---|
| 343 |
|
---|
| 344 | djm wants ``LINKS'' variable; list of things to link together after
|
---|
| 345 | install. In BSD environment, use:
|
---|
| 346 | LINKS = from1 to1 from2 to2 ...
|
---|
| 347 |
|
---|
| 348 | Need way to say there are no suffixes in a Makefile (Franc,ois'
|
---|
| 349 | "override" idea suffices here)
|
---|
| 350 |
|
---|
| 351 | Check to make sure various scripts are executable (IE when looking for
|
---|
| 352 | them in a directory)
|
---|
| 353 |
|
---|
| 354 | Handle dist-zoo. Generally add more DOS support. Maybe run "doschk"
|
---|
| 355 | (why isn't this merged with "pathchk"?) when doing a dist. Do
|
---|
| 356 | whatever else François says here...
|
---|
| 357 |
|
---|
| 358 | Add support for html via an option. Use texi2html. Use
|
---|
| 359 | "html_TEXINFOS", and htmldir = .../html. Include html files in
|
---|
| 360 | distribution. Also allow "html_DATA", for raw .html files.
|
---|
| 361 | [ when will texinfo directly support html? ]
|
---|
| 362 |
|
---|
| 363 | uninstall and pkg-dirs should rm -rf the dir.
|
---|
| 364 |
|
---|
| 365 | a potential bug: configure puts "blah.o" into LIBOBJS, thus implying
|
---|
| 366 | these files can't be de-ansified. Not a problem?
|
---|
| 367 | [ fix by using ansi2knr wrapper program ]
|
---|
| 368 |
|
---|
| 369 | In general most .am files should be merged into automake. For
|
---|
| 370 | instance all the "clean" targets could be merged by keeping lists of
|
---|
| 371 | things to be removed. This would be a lot nicer looking. Note that
|
---|
| 372 | the install targets probably should not be merged; it is sometimes
|
---|
| 373 | useful to only install a small part.
|
---|
| 374 |
|
---|
| 375 | * Clean up the output:
|
---|
| 376 | ** Order rules sensibly
|
---|
| 377 | ** Ensure every line has a purpose. Omit unused stuff
|
---|
| 378 | ** Eliminate extraneous rules when possible (eg 'install-am' stuff)
|
---|
| 379 | ** Make sure vertical spacing is correct
|
---|
| 380 | Omit program transform vars from header if no program installed. This
|
---|
| 381 | is currently pretty hard to do. (But with beautification code it
|
---|
| 382 | would probably be easy)
|
---|
| 383 |
|
---|
| 384 | * Lex, yacc support:
|
---|
| 385 | ** It would be nice to automatically support using bison's better features
|
---|
| 386 | to rename the output files. This requires autoconf support
|
---|
| 387 | ** Consider supporting syntax from autoconf "derived:source", eg:
|
---|
| 388 | y.tab.c:perly.y
|
---|
| 389 | for yacc and lex source
|
---|
| 390 | ** what if you use flex and the option to avoid -lfl?
|
---|
| 391 | should support this?
|
---|
| 392 |
|
---|
| 393 | * Multi-language support:
|
---|
| 394 | ** should have mapping of file extensions to languages
|
---|
| 395 | ** should automatically handle the linking issue (special-case C++)
|
---|
| 396 | ** must get compile rules for various languages; FORTRAN probably
|
---|
| 397 | most important unimplemented language
|
---|
| 398 | This should be integrated in some way with Per's idea.
|
---|
| 399 | Eg .f.o rules should be recognized & auto-handled in _SOURCES
|
---|
| 400 | That way any random language can be treated with C/C++ on a first-class
|
---|
| 401 | basis (maybe)
|
---|
| 402 |
|
---|
| 403 | It might be cool to generate .texi dependencies by grepping for
|
---|
| 404 | @include. (If done, it should be done the same way C dependencies are
|
---|
| 405 | done)
|
---|
| 406 |
|
---|
| 407 | It would be good to check some parts of GNU standards. Already check
|
---|
| 408 | for install-sh and mkinstalldirs. What else is required to be in
|
---|
| 409 | package by GNU standards or by automake?
|
---|
| 410 | Some things for --strictness=gnits:
|
---|
| 411 | * "cd $(foo); something" is an error in a rule. Should be:
|
---|
| 412 | "cd $(foo) && something"
|
---|
| 413 | * Look for 'ln -s' and warn about using $(LN_S) and AC_PROG_LN_S
|
---|
| 414 | * Look for $(LN_S) and require AC_PROG_LN_S
|
---|
| 415 |
|
---|
| 416 | Auto-distribute "ChangeLog.[0-9]+"? "ChangeLog.[a-z]+"?
|
---|
| 417 |
|
---|
| 418 | Internationalize. [ gettext doesn't have the necessary machinery yet ]
|
---|
| 419 | am_error should use printf-style arguments (for eventual gettext scheme)
|
---|
| 420 |
|
---|
| 421 | François says the ordering of files in a distribution should be as follows:
|
---|
| 422 | * README
|
---|
| 423 | * source files
|
---|
| 424 | * derived files
|
---|
| 425 | I agree, but I don't see how to implement this yet.
|
---|
| 426 | It might be easier if "derived files" is limited to those that
|
---|
| 427 | Automake itself knows about, eg output of yacc.
|
---|
| 428 |
|
---|
| 429 | Check all source files to make sure that FSF address is up-to-date.
|
---|
| 430 | --gnits or --gnu only.
|
---|
| 431 |
|
---|
| 432 | Merge each -vars.am file with corresponding ".am" file. Can do this
|
---|
| 433 | because of changes to &file_contents.
|
---|
| 434 |
|
---|
| 435 | Should libexec programs have the name transform done on them?
|
---|
| 436 |
|
---|
| 437 | Order the output rules sensibly, so FOO_SOURCES and FOO_OBJECTS are
|
---|
| 438 | together and rules are in the usual order.
|
---|
| 439 |
|
---|
| 440 | Make the output minimal: only output definitions for variables that
|
---|
| 441 | are used.
|
---|
| 442 |
|
---|
| 443 | djm says:
|
---|
| 444 | David> To avoid comments like the one about subdirs getting buried in
|
---|
| 445 | David> the middle of a Makefile.in, how about pushing comments that
|
---|
| 446 | David> start with ### to the top of the Makefile.in (in order)? Sort
|
---|
| 447 | David> of like how Autoconf uses diversions to force initialization
|
---|
| 448 | David> code to the top of configure.
|
---|
| 449 |
|
---|
| 450 | Karl Berry says:
|
---|
| 451 | Karl> 2) Your Makefile variable names are generally uppercase, but GNU
|
---|
| 452 | Karl> generally uses lowercase. Not that it matters :-).
|
---|
| 453 |
|
---|
| 454 | ================================================================
|
---|
| 455 |
|
---|
| 456 | Stuff for aclocal:
|
---|
| 457 |
|
---|
| 458 | probably should put each group of m4 files into a subdir owned by the
|
---|
| 459 | containing application.
|
---|
| 460 |
|
---|
| 461 | ================================================================
|
---|
| 462 |
|
---|
| 463 | Document:
|
---|
| 464 |
|
---|
| 465 | AM_MISSING_PROG
|
---|
| 466 |
|
---|
| 467 | how to use the generated makefiles
|
---|
| 468 | - standard targets
|
---|
| 469 | - required targets
|
---|
| 470 | - NORMAL_INSTALL junk
|
---|
| 471 |
|
---|
| 472 | what goes in AC_CONFIG_AUX_DIR
|
---|
| 473 |
|
---|
| 474 | multi-":" mode in AC_OUTPUT -- automake only looks at the first file
|
---|
| 475 | also a note on how a .am file is found in this case
|
---|
| 476 |
|
---|
| 477 | rationale for avoiding
|
---|
| 478 | make CFLAGS="$CFLAGS" ...
|
---|
| 479 | in subdirs make rule
|
---|
| 480 |
|
---|
| 481 | a package that installs its own aclocal macros
|
---|
| 482 |
|
---|
| 483 | write example of using automake with dejagnu
|
---|
| 484 | follow calc example in dejagnu docs
|
---|
| 485 |
|
---|
| 486 | document which variables are actually scanned and which are not.
|
---|
| 487 |
|
---|
| 488 | Document customary ordering of Makefile.am. From François.
|
---|
| 489 |
|
---|
| 490 | Should include extended version of diagram from Autoconf (suggested by
|
---|
| 491 | Greg Woods)
|
---|
| 492 |
|
---|
| 493 | Make a definition of the term "source"
|
---|
| 494 |
|
---|
| 495 | document how to use Automake with CVS. Idea from Mark Galassi. Also
|
---|
| 496 | include Greg Woods' more sophisticated "cvs-dist" target.
|
---|
| 497 |
|
---|
| 498 | document rebuilding configure. CONFIGURE_DEPENDENCIES
|
---|
| 499 | CONFIG_STATUS_DEPENDENCIES
|
---|
| 500 |
|
---|
| 501 | -- must document all variables that are supposed
|
---|
| 502 | to be public knowledge
|
---|
| 503 |
|
---|
| 504 | must document the targets required for integration with
|
---|
| 505 | non-automake-using subdirs
|
---|
| 506 |
|
---|
| 507 | document the "make SHELL='/bin/sh -x'" trick for debugging
|
---|
| 508 |
|
---|
| 509 | section on relationship to GNU make. include notes on parallel makes
|
---|
| 510 |
|
---|
| 511 | add a concept index
|
---|
| 512 |
|
---|
| 513 | move discussion of cygwin32, etags, mkid under other gnu tools
|
---|
| 514 |
|
---|
| 515 | CCLD, CXXLD, FLD
|
---|
| 516 |
|
---|
| 517 | ================================================================
|
---|
| 518 |
|
---|
| 519 | Libraries:
|
---|
| 520 |
|
---|
| 521 | * Should support standalone library along with subdir library in same
|
---|
| 522 | Makefile.am. Maybe: turn off "standalone" mode if library's Makefile.am
|
---|
| 523 | is not only one specd? [ add an option for this ]
|
---|
| 524 |
|
---|
| 525 | ================================================================
|
---|
| 526 |
|
---|
| 527 | Longer term:
|
---|
| 528 |
|
---|
| 529 | Would it be useful to integrate in some way with the Debian package
|
---|
| 530 | building utility? Must check. maybe it would be possible to deal
|
---|
| 531 | with all the different package utilities somehow. Lately I've been
|
---|
| 532 | hearing good things about the RedHat packaging utilities. Why are
|
---|
| 533 | there so many of these? Are they fun to write or something?
|
---|
| 534 | The RedHat package utility is called RPM; see
|
---|
| 535 | ftp://ftp.redhat.com/pub/code/rpm
|
---|
| 536 | It actually has problems, like no configure script and no documentation.
|
---|
| 537 |
|
---|
| 538 | For Cygnus it would probably be good to be able to handle the native
|
---|
| 539 | package utility on each platform. There are probably 3 or 4 of these
|
---|
| 540 | (sysv, solaris?, aix?)
|
---|
| 541 |
|
---|
| 542 | tcl/unix/Makefile.in has some code to generate a Solaris package.
|
---|
| 543 |
|
---|
| 544 | Automake probably can't do all of this on its own. A new tool might
|
---|
| 545 | be a better idea
|
---|
| 546 |
|
---|
| 547 | I have some notes from a Debian developer on how the integration
|
---|
| 548 | should work
|
---|
| 549 |
|
---|
| 550 | ================================================================
|
---|
| 551 |
|
---|
| 552 | A tool to guess what the local Makefile.am should look like:
|
---|
| 553 | (see Gord's Maint program!)
|
---|
| 554 |
|
---|
| 555 | * Probably integrate with autoscan
|
---|
| 556 | * Use various simple rules to determine what to do:
|
---|
| 557 | * get name of top directory, sans version info
|
---|
| 558 | * search for .c files with 'main' in them
|
---|
| 559 | * if in main.c, use directory name for program
|
---|
| 560 | * if in more than one, generate multiple programs
|
---|
| 561 | * if not found, generate a library named after directory
|
---|
| 562 | * order subdir searches correctly: lib first, src last
|
---|
| 563 | * assume 'testsuite' dir means we are using dejagnu
|
---|
| 564 | * maybe be smart about reading existing Makefile.am, so tool
|
---|
| 565 | can be run for incremental changes? You could imagine:
|
---|
| 566 |
|
---|
| 567 | Makefile.am:
|
---|
| 568 | autoproject --incremental
|
---|
| 569 |
|
---|
| 570 | ================================================================
|
---|
| 571 |
|
---|
| 572 | Stuff NOT to do, and why:
|
---|
| 573 |
|
---|
| 574 | consider auto-including any file that matches "*.in".
|
---|
| 575 | [ no: po/Makefile.in shouldn't be included ]
|
---|
| 576 |
|
---|
| 577 | must look at mkid to see how it works (for subdir usage)
|
---|
| 578 | [ right now, it doesn't. i don't see a simple fix right now ]
|
---|
| 579 |
|
---|
| 580 | if configure.in not found, move up a directory and try again? This
|
---|
| 581 | could eliminate a common source of problems.
|
---|
| 582 | [ this is just a bad idea ]
|
---|
| 583 |
|
---|
| 584 | * scripts are installed in $exec_prefix/bin, not $prefix/bin
|
---|
| 585 | Bug or feature?
|
---|
| 586 | [ the consensus on Gnits is that this isn't required.
|
---|
| 587 | doubters can work around it anyway ]
|
---|
| 588 |
|
---|
| 589 | Scan source directories and warn about missing files, eg .c/.h files
|
---|
| 590 | that aren't mentioned?
|
---|
| 591 | [ distcheck makes this less useful ]
|
---|
| 592 |
|
---|
| 593 | * quoting bugs
|
---|
| 594 | - how to install file with a space in its name?
|
---|
| 595 | [ don't bother with this -- make is just too losing ]
|
---|
| 596 |
|
---|
| 597 | * notice when a .c file is a target somewhere, and auto-add it to
|
---|
| 598 | BUILT_SOURCES
|
---|
| 599 | [ BUILT_SOURCES are for files that need to be built before anything
|
---|
| 600 | else because of hidden dependencies (something .c files are
|
---|
| 601 | unlikely to be) ]
|
---|
| 602 |
|
---|
| 603 |
|
---|
| 604 | * copyright notice
|
---|
| 605 |
|
---|
| 606 | Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free
|
---|
| 607 | Software Foundation, Inc.
|
---|
| 608 |
|
---|
| 609 | This file is part of GNU Automake.
|
---|
| 610 |
|
---|
| 611 | GNU Automake is free software; you can redistribute it and/or modify
|
---|
| 612 | it under the terms of the GNU General Public License as published by
|
---|
| 613 | the Free Software Foundation; either version 2, or (at your option)
|
---|
| 614 | any later version.
|
---|
| 615 |
|
---|
| 616 | GNU Automake is distributed in the hope that it will be useful,
|
---|
| 617 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 618 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 619 | GNU General Public License for more details.
|
---|
| 620 |
|
---|
| 621 | You should have received a copy of the GNU General Public License
|
---|
| 622 | along with autoconf; see the file COPYING. If not, write to
|
---|
| 623 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
---|
| 624 | Boston, MA 02111-1307, USA.
|
---|
| 625 |
|
---|
| 626 |
|
---|
| 627 | Local Variables:
|
---|
| 628 | mode: outline
|
---|
| 629 | End:
|
---|