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