1 Priorities for release:
5 Per> 1) Being able to build a set of non-source programs
6 Per> from source porgrams, without necessarily linking them together.
7 Per> I.e. one should be able to say something like:
8 Per> dummy_SOURCES=foo.c bar.c
9 Per> and automake should realize that it needs to build foo.o and bar.o.
10 Per> 2) Being intelligent about new kinds of suffixes.
12 Per> SUFFIXES = .class .java
13 Per> and a suffix rule of the form:
15 Per> then it should be able to realize it can build .class files from
16 Per> .java files, and thus be able to generate a list of
17 Per> .class files from a list of .java source files.
19 * fix this distribution to be fully standards compliant
20 * pathchk says we run over the limit
21 * must change aclocal's implementation somehow -- gross
23 * actually use acinstall program
25 !! Must fix require_file stuff. It is really gross, and I don't
26 understand it any more.
28 * error messages should print ``[info blah blah]'' command when a
29 certain part of the standards apply. saw idea in message from
32 * patch from Joel Weber about fixing yacc; in particular generating .h file
34 !! remove autosystem-specific macros
35 !! should write autoconf-style doc entries for each m4 macro
37 [ this should really go into autoconf in some automatic way ]
38 Joel> I know that the following is needed at the end of configure.in:
39 Joel> [test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h])
40 Joel> However, if automake checked that this line is present, it would
41 Joel> help...this bit me for a while.
43 Jim's idea: should look for @setfilename and warn if filenames too long
45 * allow ".info" to be missing
47 should put inverse of @MAINT@ before `.PHONY: configure'. This means
48 fixing configure target name (no $srcdir)
50 * must update GNU Hello
52 ** when can aclocal.m4 be auto-generated?
54 ** many requests for a way to omit a file from the distribution.
55 Should be done like `!foo' or `~foo' in _SOURCES, etc.
56 Such files should be removed explicitly after the copy step!
57 Doing this requires rewriting macros before generating Makefile.in.
59 add support for Makefile.tmpl that is auto-included in every
60 Makefile.am. That makes it easier to do some non-std thing in every
63 consider printing full file name of Makefile.am or configure.in when
64 giving error. This would help for very large trees with many
67 From the GNU Standards. These things could be checked, and probably
69 * Make sure that the directory into which the distribution unpacks (as
70 well as any subdirectories) are all world-writable (octal mode 777).
71 * Make sure that no file name in the distribution is more than 14
73 * Don't include any symbolic links in the distribution itself.
75 * Make sure that all the files in the distribution are world-readable.
76 ** also, check --help output and --version output. Idea from François
78 consider supporting "var+= stuff" syntax. rewrite to just var=... on
79 output. This is sometimes convenient when you want to write a
80 Makefile.am in more-or-less modular parts
82 should be able to determine what is built by looking at rules (and
83 configure.in). Then built man pages (eg) could automatically be
84 omitted from the distribution.
86 Consider using libfoo_SOURCES, etc, for libraries. From Gord
87 Matzigkeit. There is a patch.
89 Idea from Joerg-Martin Schwarz: allow passing different -D flags to
90 different compiles. This can be done, but with the restriction that a
91 .c cannot appear in 2 different "objects" (programs/libraries)
92 compiled with different -D options (because -c and -o do not always
93 work together and parallel makes must work). This could be
94 implemented by noticing whenever a ".o" target with no rules is being
95 emitted, and adding the appropriate compilation rule as appropriate.
96 This should work with targets from Makefile.am as well as from .P
97 files, which means rewriting so that the Makefile.am contents aren't
98 copied into the output immediately. This feature is probably required
99 to fully support libtool ("grody compilation issue")
101 Henrik Frystyk Nielsen says:
102 Henrik> 4) Flags like --include-deps are lost when you make changes to
103 Henrik> Makefile.am files and automake is run automatically. It would
104 Henrik> be nice to keep these flags as I now have to redo everything
106 ... what about other options here too?
108 Think about: maybe "make check" should just bomb if error occurs?
109 Then user must use "make -k check". This is probably more natural.
111 Consider: "cvs" option adds some cvs-specific rules?
113 "Cygnus"-specific features:
114 * An option that statically rewrites @MAINT@ to "#M#".
115 * Should look for certain tools in the build tree:
116 expect, dejagnu, makeinfo
117 * `no-installinfo' is the default
118 * always generate `info' and `install-info' targets
119 * Allow `texinfo.tex' to be missing
121 Automake: should EXTRA_DIST files be statically findable?
123 Automake: devo/inet/Makefile.am has "all-local". "install" depends on
124 "all", but the local installs get run before the stuff in "all". Gross.
126 Right now, targets generated internally (eg "install") are not
127 overridable by user code. This should probably be possible, even
128 though it isn't very important. This could be done by generating all
129 internal rules via a function call instead of just appending to
132 * Should be a way to have "nobuild_PROGRAMS" which aren't even built,
133 but which could be by running the magic make command.
135 * Should have tool like "autoreconf" that only remakes Makefiles that
136 need it. Probably autoreconf should be modified to handle automake
139 * Must rewrite am_install_var. Should break into multiple functions.
140 This will allow the callers to be a little smarter.
141 * Rewrite clean targets.
142 * Must rewrite error handling code. Right now it is a real mess
143 Should fix up require_file junk at the same time
145 Things to finish libtool support:
146 * Handle grody compilation issue
147 * Handle install changes
148 * Handle clean changes
149 * New definition for LINK
151 Scan source directories and warn about missing files, eg .c/.h files
152 that aren't mentioned?
154 Need way to say there are no suffixes in a Makefile (Franc,ois'
155 "override" idea suffices here)
157 Check to make sure various scripts are executable (IE when looking for
160 Use recode in dist target when MAINT_CHARSET specified. Read caveats
161 in automake.in before doing this. Note the same problem used to apply
162 to the no-dependencies option; maybe it still should? Note also that
163 each Makefile.am must be rewritten at "make dist" time if
164 MAINT_CHARSET and DIST_CHARSET are not identical. NOTE: gettext must
165 arrange for all .po files not to be recoded. In the long term this
166 might be a problem (consider when some systems use Unicode but the
168 MAINT_CHARSET *must* be local to each Makefile.am, to enable
169 merged distributions.
170 DIST_CHARSET must be passed down to subdir makes during a "make dist"
172 Handle dist-zoo. Generally add more DOS support. Maybe run "doschk"
173 (why isn't this merged with "pathchk"?) when doing a dist. Do
174 whatever else François says here...
176 Add support for html via an option. Use texi2html. Use
177 "html_TEXINFOS", and htmldir = .../html. Include html files in
178 distribution. Also allow "html_DATA", for raw .html files.
179 [ when will texinfo support html? ]
180 [ is there a texinfo.tex that supports texi2html extensions? ]
182 uninstall and pkg-dirs should rm -rf the dir.
184 a potential bug: configure puts "blah.o" into LIBOBJS, thus implying
185 these files can't be de-ansified. Not a problem?
187 In general most .am files should be merged into automake. For
188 instance all the "clean" targets could be merged by keeping lists of
189 things to be removed. This would be a lot nicer looking. Note that
190 the install targets probably should not be merged; it is sometimes
191 useful to only install a small part.
194 * Order rules sensibly
195 * Ensure every line has a purpose. Omit unused stuff
196 * Eliminate extraneous rules when possible (eg 'install-am' stuff)
197 * Make sure vertical spacing is correct
198 * pretty-print targets
199 * regularize how backslash-newline is done. Just one space between text
200 and backslash should be the rule. Update makefile-mode to allow this.
201 (set column to 0, probably)
202 Omit program transform vars from header if no program installed. This
203 is currently pretty hard to do. (But with beautification code it
204 would probably be easy)
207 * It would be nice to automatically support using bison's better features
208 to rename the output files. This requires autoconf support
209 * Consider supporting syntax from autoconf "derived:source", eg:
211 for yacc and lex source
212 * if AC_PROG_LEX used, ensure (no, *PUT*) LEXLIB in foo_LDADD
214 Multi-language support:
215 * should have mapping of file extensions to languages
216 * should automatically handle the linking issue (special-case C++)
217 * must get compile rules for various languages; FORTRAN probably
218 most important unimplemented language
220 'maintainer-clean' should "rm -rf .deps". Ditto distclean
221 Should look for clean-local targets in Makefile.am.
223 It might be cool to generate .texi dependencies by grepping for
224 @include. (If done, it should be done the same way C dependencies are
227 It would be good to check some parts of GNU standards. Already check
228 for install-sh and mkinstalldirs. What else is required to be in
229 package by GNU standards or by automake?
230 Some things for --strictness=gnits:
231 * "cd $(foo); something" is an error in a rule. Should be:
232 "cd $(foo) && something"
233 * Look for 'ln -s' and warn about using $(LN) and AC_PROG_LN_S
234 * Look for $(LN) and require AC_PROG_LN_S
236 automake.in: should ".cc" really -> "$o"? This doesn't really seem
237 right, but maybe it is so names can be rewritten uniformly? Must
240 Auto-distribute "ChangeLog.[0-9]+"? "ChangeLog.[a-z]+"?
242 Internationalize. [ gettext doesn't have the necessary machinery yet ]
243 am_error should use printf-style arguments (for eventual gettext scheme)
245 François says the ordering of files in a distribution should be as follows:
249 I agree, but I don't see how to implement this yet.
250 It might be easier if "derived files" is limited to those that
251 Automake itself knows about, eg output of yacc.
253 Check all source files to make sure that FSF address is up-to-date.
254 --gnits or --gnu only.
256 Merge each -vars.am file with corresponding ".am" file. Can do this
257 because of changes to &file_contents.
259 Looked at a program called 'ezmake', which seems to do something
260 similar. The only idea there that is possibly worth stealing is using
261 globs in definitions. Also has negations. Eg in a directory with
262 files a.c, b.c and c.c, the line:
263 foo_SOURCES = *.c ~c.c
264 would be equivalent to:
265 foo_SOURCES = a.c b.c
266 Is this worth implementing?
268 Should libexec programs have the name transform done on them?
270 Order the output rules sensibly, so FOO_SOURCES and FOO_OBJECTS are
271 together and rules are in the usual order.
273 Make the output minimal: only output definitions for variables that
276 Look at dist's jmake for ideas. dist is the name of the distribution
277 including Metaconfig. Perl uses it.
279 Should handle directory hierarchies deeper than 2. Right now there is
280 some support for this. Here are some of the issues:
281 * Should handle AC_CONFIG_SUBDIRS, ie must handle configure.in in subdirs
282 * can do this by looking at subdirs, seeing configure.in
283 and auto-running Automake there
286 * use RUNTEST_FOR_TARGET in some cases?
288 These can both be handled via dist-hook:
289 . Consider supporting guile-style PLUGIN directories automatically?
290 . Consider allowing eg "foo/bar" to appear in EXTRA_DIST, and generating
291 code to make directory foo at dist time
293 consider having no-gzip option that turns off gzip/GNU tar.
296 David> To avoid comments like the one about subdirs getting buried in
297 David> the middle of a Makefile.in, how about pushing comments that
298 David> start with ### to the top of the Makefile.in (in order)? Sort
299 David> of like how Autoconf uses diversions to force initialization
300 David> code to the top of configure.
304 suidubins = chage cfhn etc etc
305 noinst_PROGRAMS = grpconv pwconv id groups $(suidbins) $(suidubins)
309 Karl> 2) Your Makefile variable names are generally uppercase, but GNU
310 Karl> generally uses lowercase. Not that it matters :-).
312 ================================================================
316 probably should put each group of m4 files into a subdir owned by the
317 containing application.
319 must fill in definitions for some of the AC_FEATURE macros
321 consider including autosystem; that is the only way the AC_FEATURE
322 macros even make sense. Or move the AC_FEATURE macros back into
325 ================================================================
329 document which variables are actually scanned and which are not.
333 Document customary ordering of Makefile.am. From François.
335 Should include extended version of diagram from Autoconf (suggested by
338 Make a definition of the term "source"
340 need xref to libtool in docs
342 document how to use Automake with CVS. Idea from Mark Galassi. Also
343 include Greg Woods' more sophisticated "cvs-dist" target.
345 document rebuilding configure. CONFIGURE_DEPENDENCIES
347 document new variables introduced when AC_CANONICAL_* used
348 -- actually, must document all variables that are supposed
349 to be public knowledge
351 automake must be run in each directory with a configure.in
352 This is insufficiently clear
354 must document the targets required for integration with
355 non-automake-using subdirs
357 ================================================================
361 * Should support standalone library along with subdir library in same
362 Makefile.am. Maybe: turn off "standalone" mode if library's Makefile.am
363 is not only one specd? [ add an option for this ]
365 ================================================================
369 Have a program that generates a Makefile on stdout, passes it through
370 a "config.status"-style filter, and thence into make. Why bother,
371 other than the gee-whiz factor?
373 It might be interesting to figure out how a GNU system could use
374 Makefile.am's without resorting to Automake. This might be impossible
375 in a practical sense.
377 Would it be useful to integrate in some way with the Debian package
378 building utility? Must check. maybe it would be possible to deal
379 with all the different package utilities somehow. Lately I've been
380 hearing good things about the RedHat packaging utilities. Why are
381 there so many of these? Are they fun to write or something?
382 The RedHat package utility is called RPM; see
383 ftp://ftp.redhat.com/pub/code/rpm
384 It actually has problems, like no configure script and no documentation.
386 ================================================================
388 A tool to guess what the local Makefile.am should look like:
390 * Probably integrate with autoscan
391 * Use various simple rules to determine what to do:
392 * get name of top directory, sans version info
393 * search for .c files with 'main' in them
394 * if in main.c, use directory name for program
395 * if in more than one, generate multiple programs
396 * if not found, generate a library named after directory
397 * order subdir searches correctly: lib first, src last
398 * assume 'testsuite' dir means we are using dejagnu
399 * maybe be smart about reading existing Makefile.am, so tool
400 can be run for incremental changes? You could imagine:
403 autoproject --incremental
405 ================================================================
407 Stuff NOT to do, and why:
409 consider auto-including any file that matches "*.in".
410 [ no: po/Makefile.in shouldn't be included ]
412 must look at mkid to see how it works (for subdir usage)
413 [ right now, it doesn't. i don't see a simple fix right now ]
415 if configure.in not found, move up a directory and try again? This
416 could eliminate a common source of problems.
417 [ this is just a bad idea ]
419 * scripts are installed in $exec_prefix/bin, not $prefix/bin
421 [ the consensus on Gnits is that this isn't required.
422 doubters can work around it anyway ]
424 * make the auto-dep code crash if GNU make not in use?
425 (doesn't it already?)