1 * update text in missing
4 * if `interlock' exists, that should be an error (?)
5 should also warn about using new ylwrap and not old one
6 only do this when looking for ylwrap
8 ** make sure every variable that is used is also defined
10 * make sure `missing' defines are generated
11 * if no AM_INIT_AUTOMAKE, then don't handle `missing' stuff.
13 * missing should handle install -d and rmdir -p (for uninstall)
15 * allow 'cygnus' in AUTOMAKE_OPTIONS
17 * a couple ways to be smarter:
18 - notice when a .c file is a target somewhere, and auto-add it to
20 - notice a target of the form `.x.y:' and assume it is a suffix rule
23 * NORMAL_INSTALL / NORMAL_UNINSTALL -vs- recursive rules
24 [ requires changes to the standard ]
26 * if foo.y is a source, foo.h isn't auto-distributed?
28 * dependency tracking doesn't work well when a file is removed
29 the new code to track header dependencies exacerbates this
31 it would probably be better to use "gcc -MD" and move the .d
32 file into the .deps directory. That is, create the dependencies
33 as a side effect of compilation
34 This still won't solve the file-deletion problem
35 [ also: jim makes distributions by checking out, configuring,
36 and running "make dist". This scheme would cause that to fail ]
38 * copyrights on m4 files, aclocal output
40 * is there a way to add a directory and then have "make" do all the
43 * put standards.texi into distribution
46 * should not put texiname_TEXINFOS into distribution
47 should rename this macro anyway, to foo_texi_DEPENDENCIES
49 * *all* installed scripts should support --version, --help
51 * have aclocal diagnose unrecognized AM_ macros
53 For now I guess I'll just have automake give an error if it encounters
54 non-C source in a libtool library specification.
56 * must split $obj into two parts: one for libtool and one for
57 deansification. Otherwise .S files will be deansified!
59 * if program has the same name as a target, do something sensible:
60 - if the target is internal, rename it
61 - if the target is mandated (eg, "info"), tell the user
62 consider auto-modifying the program name to work around this
64 * should separate actual options from strictness levels
65 strictness should only cover requirements
66 You should be able to pick and choose options
68 should clean up texinfos.am; one rule is repeated 3 times, but
71 should always use perl -w
73 rewrite in guile (RMS request)
74 at the same time, consider adding a GUI
75 could use the same parsing code for the GUI and the standalone version
76 that means figuring out a better representation of internal state
77 [ that's easy -- anything is better than what we have now ]
79 having just one Makefile for a project would give a big speed increase
80 for a project with many directories, eg glibc. ideally (?) you'd
81 still be able to have a Makefile.am in each directory somehow; this
82 might make editing conceptually easier.
86 * put parser.h into distribution if "yacc -d" is used
88 * only remove libtool at top level?
90 * clean up source directory by moving stuff into subdirs
92 * consider adding pkglibexecdir, maybe others?
93 requests for pkg-dirs with version included
98 Avoid loops when installing; instead unroll them in automake
101 * completely handle multi-":" mode for AC_CONFIG_HEADER
102 * Scan multiple input files when Makefile is generated?
103 This would provide flexibility for large projects; subsumes
104 the "Makefile.tmpl" idea
106 [ can't do this. must explain why in manual.
107 basically, solving all the problems is too hard
108 like: how to remove redundancies between generated .in files
109 instead should implement `include' directive for Makefile.am ]
110 * for multi-":" mode and AC_OUTPUT, it might be good to pick the
111 first input file that has a corresponding .am file.
113 Some long-term projects:
114 * if $(FOO) is used somewhere, ensure FOO is defined, either by
115 user or by automake if possible
116 * Don't rearrange order of `include' lines relative to += assignments.
117 * Handle += assignments at all.
118 * Handle `include' lines by scanning other files, and adding
119 to Makefile.in dependency
121 consider putting all check-* targets onto @check?
122 To support --help/--version checking?
124 take diff-n-query code from libit
127 Per> 1) Being able to build a set of non-source programs
128 Per> from source programs, without necessarily linking them together.
129 Per> I.e. one should be able to say something like:
130 Per> dummy_SOURCES=foo.c bar.c
131 Per> and automake should realize that it needs to build foo.o and bar.o.
132 Per> 2) Being intelligent about new kinds of suffixes.
134 Per> SUFFIXES = .class .java
135 Per> and a suffix rule of the form:
137 Per> then it should be able to realize it can build .class files from
138 Per> .java files, and thus be able to generate a list of
139 Per> .class files from a list of .java source files.
141 !! Must fix require_file stuff. It is really gross, and I don't
142 understand it any more.
144 * error messages should print ``[info blah blah]'' command when a
145 certain part of the standards apply. saw idea in message from
146 Craig Burley. wouldn't it be really cool if compile-mode in Emacs
147 understood this convention, and you could click on such text to
148 go to the appropriate info page?
150 Jim's idea: should look for @setfilename and warn if filenames too long
153 ** many requests for a way to omit a file from the distribution.
154 Should be done like `!foo' or `~foo' in _SOURCES, etc.
155 Such files should be removed explicitly after the copy step!
156 Doing this requires rewriting macros before generating Makefile.in.
158 from joerg-martin schwarz:
159 -- If Makefile.am contains $(CC), $(COMPILE), $(YLWRAP), ....
160 in an explicitly written rule, you should emit the corresponding
161 Makefile variables automatically.
163 Configuring in the large:
164 * allow hierarchy of dirs to share one aclocal.m4
167 consider printing full file name of Makefile.am or configure.in when
168 giving error. This would help for very large trees with many
171 From the GNU Standards. These things could be checked, and probably
173 * Make sure that the directory into which the distribution unpacks (as
174 well as any subdirectories) are all world-writable (octal mode 777).
175 * Make sure that no file name in the distribution is more than 14
177 * Don't include any symbolic links in the distribution itself.
179 * Make sure that all the files in the distribution are world-readable.
180 ** also, check --help output and --version output. Idea from François
181 * standards no longer prohibit ANSI C. What does this imply
182 for the de-ansi-fication feature?
184 consider supporting "var+= stuff" syntax. rewrite to just var=... on
185 output. This is sometimes convenient when you want to write a
186 Makefile.am in more-or-less modular parts
188 should be able to determine what is built by looking at rules (and
189 configure.in). Then built man pages (eg) could automatically be
190 omitted from the distribution.
192 Idea from Joerg-Martin Schwarz: allow passing different -D flags to
193 different compiles. This can be done, but with the restriction that a
194 .c cannot appear in 2 different "objects" (programs/libraries)
195 compiled with different -D options (because -c and -o do not always
196 work together and parallel makes must work). This could be
197 implemented by noticing whenever a ".o" target with no rules is being
198 emitted, and adding the appropriate compilation rule as appropriate.
199 This should work with targets from Makefile.am as well as from .P
200 files, which means rewriting so that the Makefile.am contents aren't
201 copied into the output immediately.
202 [ this could be probably done more directly by examining the sources
203 as we scan Makefile.am ]
205 Henrik Frystyk Nielsen says:
206 Henrik> 4) Flags like --include-deps are lost when you make changes to
207 Henrik> Makefile.am files and automake is run automatically. It would
208 Henrik> be nice to keep these flags as I now have to redo everything
210 ... what about other options here too?
212 Think about: maybe "make check" should just bomb if error occurs?
213 Then user must use "make -k check". This is probably more natural.
215 Consider: "cvs" option adds some cvs-specific rules?
217 Right now, targets generated internally (eg "install") are not
218 overridable by user code. This should probably be possible, even
219 though it isn't very important. This could be done by generating all
220 internal rules via a function call instead of just appending to
222 [ this will be harder to implement when scanning a rule like all-recursive
225 * Should be a way to have "nobuild_PROGRAMS" which aren't even built,
226 but which could be by running the magic make command.
229 * Must rewrite am_install_var. Should break into multiple functions.
230 This will allow the callers to be a little smarter.
231 * Rewrite clean targets.
232 * Must rewrite error handling code. Right now it is a real mess
233 Should fix up require_file junk at the same time
235 djm wants ``LINKS'' variable; list of things to link together after
236 install. In BSD environment, use:
237 LINKS = from1 to1 from2 to2 ...
239 Need way to say there are no suffixes in a Makefile (Franc,ois'
240 "override" idea suffices here)
242 Check to make sure various scripts are executable (IE when looking for
245 Use recode in dist target when MAINT_CHARSET specified. Read caveats
246 in automake.in before doing this. Note the same problem used to apply
247 to the no-dependencies option; maybe it still should? Note also that
248 each Makefile.am must be rewritten at "make dist" time if
249 MAINT_CHARSET and DIST_CHARSET are not identical. NOTE: gettext must
250 arrange for all .po files not to be recoded. In the long term this
251 might be a problem (consider when some systems use Unicode but the
253 MAINT_CHARSET *must* be local to each Makefile.am, to enable
254 merged distributions.
255 DIST_CHARSET must be passed down to subdir makes during a "make dist"
257 Handle dist-zoo. Generally add more DOS support. Maybe run "doschk"
258 (why isn't this merged with "pathchk"?) when doing a dist. Do
259 whatever else François says here...
261 Add support for html via an option. Use texi2html. Use
262 "html_TEXINFOS", and htmldir = .../html. Include html files in
263 distribution. Also allow "html_DATA", for raw .html files.
264 [ when will texinfo directly support html? ]
266 uninstall and pkg-dirs should rm -rf the dir.
268 a potential bug: configure puts "blah.o" into LIBOBJS, thus implying
269 these files can't be de-ansified. Not a problem?
270 [ fix by using ansi2knr wrapper program ]
272 In general most .am files should be merged into automake. For
273 instance all the "clean" targets could be merged by keeping lists of
274 things to be removed. This would be a lot nicer looking. Note that
275 the install targets probably should not be merged; it is sometimes
276 useful to only install a small part.
279 * Order rules sensibly
280 * Ensure every line has a purpose. Omit unused stuff
281 * Eliminate extraneous rules when possible (eg 'install-am' stuff)
282 * Make sure vertical spacing is correct
283 Omit program transform vars from header if no program installed. This
284 is currently pretty hard to do. (But with beautification code it
285 would probably be easy)
288 * It would be nice to automatically support using bison's better features
289 to rename the output files. This requires autoconf support
290 * Consider supporting syntax from autoconf "derived:source", eg:
292 for yacc and lex source
293 * what if you use flex and the option to avoid -lfl?
296 Multi-language support:
297 * should have mapping of file extensions to languages
298 * should automatically handle the linking issue (special-case C++)
299 * must get compile rules for various languages; FORTRAN probably
300 most important unimplemented language
301 This should be integrated in some way with Per's idea.
302 Eg .f.o rules should be recognized & auto-handled in _SOURCES
303 That way any random language can be treated with C/C++ on a first-class
306 It might be cool to generate .texi dependencies by grepping for
307 @include. (If done, it should be done the same way C dependencies are
310 It would be good to check some parts of GNU standards. Already check
311 for install-sh and mkinstalldirs. What else is required to be in
312 package by GNU standards or by automake?
313 Some things for --strictness=gnits:
314 * "cd $(foo); something" is an error in a rule. Should be:
315 "cd $(foo) && something"
316 * Look for 'ln -s' and warn about using $(LN) and AC_PROG_LN_S
317 * Look for $(LN) and require AC_PROG_LN_S
319 Auto-distribute "ChangeLog.[0-9]+"? "ChangeLog.[a-z]+"?
321 Internationalize. [ gettext doesn't have the necessary machinery yet ]
322 am_error should use printf-style arguments (for eventual gettext scheme)
324 François says the ordering of files in a distribution should be as follows:
328 I agree, but I don't see how to implement this yet.
329 It might be easier if "derived files" is limited to those that
330 Automake itself knows about, eg output of yacc.
332 Check all source files to make sure that FSF address is up-to-date.
333 --gnits or --gnu only.
335 Merge each -vars.am file with corresponding ".am" file. Can do this
336 because of changes to &file_contents.
338 Should libexec programs have the name transform done on them?
340 Order the output rules sensibly, so FOO_SOURCES and FOO_OBJECTS are
341 together and rules are in the usual order.
343 Make the output minimal: only output definitions for variables that
347 David> To avoid comments like the one about subdirs getting buried in
348 David> the middle of a Makefile.in, how about pushing comments that
349 David> start with ### to the top of the Makefile.in (in order)? Sort
350 David> of like how Autoconf uses diversions to force initialization
351 David> code to the top of configure.
354 Karl> 2) Your Makefile variable names are generally uppercase, but GNU
355 Karl> generally uses lowercase. Not that it matters :-).
357 ================================================================
361 probably should put each group of m4 files into a subdir owned by the
362 containing application.
364 ================================================================
370 how to use the generated makefiles
373 - NORMAL_INSTALL junk
375 what goes in AC_CONFIG_AUX_DIR
377 multi-":" mode in AC_OUTPUT -- automake only looks at the first file
378 also a note on how a .am file is found in this case
380 rationale for avoiding
381 make CFLAGS="$CFLAGS" ...
384 a package that installs its own aclocal macros
386 write example of using automake with dejagnu
387 follow calc example in dejagnu docs
389 document which variables are actually scanned and which are not.
391 Document customary ordering of Makefile.am. From François.
393 Should include extended version of diagram from Autoconf (suggested by
396 Make a definition of the term "source"
398 document how to use Automake with CVS. Idea from Mark Galassi. Also
399 include Greg Woods' more sophisticated "cvs-dist" target.
401 document rebuilding configure. CONFIGURE_DEPENDENCIES
403 -- must document all variables that are supposed
404 to be public knowledge
406 must document the targets required for integration with
407 non-automake-using subdirs
409 document the "make SHELL='/bin/sh -x'" trick for debugging
411 section on relationship to GNU make. include notes on parallel makes
415 move discussion of cygwin32, etags, mkid under other gnu tools
417 ================================================================
419 Things to do for autoconf:
421 * patch autoreconf to run automake and aclocal. I've done this but it is
422 not really available. It can't be made available until automake
423 is officially released
425 ================================================================
429 * Should support standalone library along with subdir library in same
430 Makefile.am. Maybe: turn off "standalone" mode if library's Makefile.am
431 is not only one specd? [ add an option for this ]
433 ================================================================
437 Would it be useful to integrate in some way with the Debian package
438 building utility? Must check. maybe it would be possible to deal
439 with all the different package utilities somehow. Lately I've been
440 hearing good things about the RedHat packaging utilities. Why are
441 there so many of these? Are they fun to write or something?
442 The RedHat package utility is called RPM; see
443 ftp://ftp.redhat.com/pub/code/rpm
444 It actually has problems, like no configure script and no documentation.
446 For Cygnus it would probably be good to be able to handle the native
447 package utility on each platform. There are probably 3 or 4 of these
448 (sysv, solaris?, aix?)
450 tcl/unix/Makefile.in has some code to generate a Solaris package.
452 Automake probably can't do all of this on its own. A new tool might
455 I have some notes from a Debian developer on how the integration
458 ================================================================
460 A tool to guess what the local Makefile.am should look like:
461 (see Gord's Maint program!)
463 * Probably integrate with autoscan
464 * Use various simple rules to determine what to do:
465 * get name of top directory, sans version info
466 * search for .c files with 'main' in them
467 * if in main.c, use directory name for program
468 * if in more than one, generate multiple programs
469 * if not found, generate a library named after directory
470 * order subdir searches correctly: lib first, src last
471 * assume 'testsuite' dir means we are using dejagnu
472 * maybe be smart about reading existing Makefile.am, so tool
473 can be run for incremental changes? You could imagine:
476 autoproject --incremental
478 ================================================================
480 Stuff NOT to do, and why:
482 consider auto-including any file that matches "*.in".
483 [ no: po/Makefile.in shouldn't be included ]
485 must look at mkid to see how it works (for subdir usage)
486 [ right now, it doesn't. i don't see a simple fix right now ]
488 if configure.in not found, move up a directory and try again? This
489 could eliminate a common source of problems.
490 [ this is just a bad idea ]
492 * scripts are installed in $exec_prefix/bin, not $prefix/bin
494 [ the consensus on Gnits is that this isn't required.
495 doubters can work around it anyway ]
497 * make the auto-dep code crash if GNU make not in use?
498 (doesn't it already?)
500 Looked at a program called 'ezmake', which seems to do something
501 similar. The only idea there that is possibly worth stealing is using
502 globs in definitions. Also has negations. Eg in a directory with
503 files a.c, b.c and c.c, the line:
504 foo_SOURCES = *.c ~c.c
505 would be equivalent to:
506 foo_SOURCES = a.c b.c
507 Is this worth implementing?
508 [ No... it is more reliable to spell everything out. ]
510 Scan source directories and warn about missing files, eg .c/.h files
511 that aren't mentioned?
512 [ distcheck makes this less useful ]