Tags fixups
[automake.git] / TODO
blob52f2c06805e5a8e0fe73c2c4cd694c948c01995f
1 Priorities for release:
3 * mkinstalldirs, install-sh don't appear in dist!
4   ref autosystem.  make test case here.
5   (put extra rule at end of Makefile to print EXTRA_DIST?)
7 * use Henrik's dist-zip rule
9 * ansi2knr.c needs STDC_HEADERS and HAVE_STRING_H
10   [ I've asked François about this.  The change should probably
11     be in the fp_C_PROTOTYPES macro ]
13 * Add way to tell automake that `configure' has unknown dependencies
15 Think about: maybe "make check" should just bomb if error occurs?
16 Then user must use "make -k check".  This is probably more natural.
18 Consider: should Gnits require jm_MAINTAINER_MODE?
20 Consider: "cvs" option adds some cvs-specific rules?
22 Consider adding an option that statically rewrites @MAINT@ to "#M#".
25 Automake and Cygnus: info target separate from all.  Always make
26 install-info target.  install-info separate from install.
28 Automake: should EXTRA_DIST files be statically findable?
30 Automake: devo/inet/Makefile.am has "all-local".  "install" depends on
31 "all", but the local installs get run before the stuff in "all".  Gross.
33 Right now, targets generated internally (eg "install") are not
34 overridable by user code.  This should probably be possible, even
35 though it isn't very important.  This could be done by generating all
36 internal rules via a function call instead of just appending to
37 $output_rules.
39 * Should be a way to have "nobuild_PROGRAMS" which aren't even built,
40   but which could be by running the magic make command.
42 * Should have tool like "autoreconf" that only remakes Makefiles that
43   need it.  Probably autoreconf should be modified to handle automake
45 Other priorities:
46 * Must rewrite am_install_var.  Should break into multiple functions.
47   This will allow the callers to be a little smarter.
48 * Rewrite clean targets.
49 * Must rewrite error handling code.  Right now it is a real mess
50   Should fix up require_file junk at the same time
52 Things to finish libtool support:
53 * Handle grody compilation issue
54 * Handle install changes
55 * Handle clean changes
56 * New definition for LINK
58 Scan source directories and warn about missing files, eg .c/.h files
59 that aren't mentioned?
61 Currently gettext requires @INTLSUB@ and @POSUB@ in SUBDIRS.  In the
62 future this will be just intl and po.  When that happens, re-enable
63 warnings in handle_subdirs.
65 Need way to say there are no suffixes in a Makefile (Franc,ois'
66 "override" idea suffices here)
68 Check to make sure various scripts are executable (IE when looking for
69 them in a directory)
71 Testing: allow support for Cygnus-style dejagnu-based test suites via
72 an option
74 Think about ways to make automake fit better with Cygnus-style trees.
76 Automake should complain if PACKAGE and VERSION are not defined in
77 configure.in.
79 Use recode in dist target when MAINT_CHARSET specified.  Read caveats
80 in automake.in before doing this.  Note the same problem used to apply
81 to the no-dependencies option; maybe it still should?  Note also that
82 each Makefile.am must be rewritten at "make dist" time if
83 MAINT_CHARSET and DIST_CHARSET are not identical.  NOTE: gettext must
84 arrange for all .po files not to be recoded.  In the long term this
85 might be a problem (consider when some systems use Unicode but the
86 rest do not)
87   MAINT_CHARSET *must* be local to each Makefile.am, to enable
88         merged distributions.
89   DIST_CHARSET must be passed down to subdir makes during a "make dist"
91 Handle dist-zoo and dist-zip.  Generally add more DOS support.  Maybe
92 run "doschk" (why isn't this merged with "pathchk"?) when doing a
93 dist.  Do whatever else François says here...
95 Add support for html via an option.  Use texi2html.  Use
96 "html_TEXINFOS", and htmldir = .../html.  Include html files in
97 distribution.  Also allow "html_DATA", for raw .html files.
98   [ when will texinfo support html? ]
100 uninstall and pkg-dirs should rm -rf the dir.
102 a potential bug: configure puts "blah.o" into LIBOBJS, thus implying
103 these files can't be de-ansified.  Not a problem?
105 In general most .am files should be merged into automake.  For
106 instance all the "clean" targets could be merged by keeping lists of
107 things to be removed.  This would be a lot nicer looking.  Note that
108 the install targets probably should not be merged; it is sometimes
109 useful to only install a small part.
111 Clean up the output:
112 * Order rules sensibly
113 * Ensure every line has a purpose.  Omit unused stuff
114 * Eliminate extraneous rules when possible (eg 'install-am' stuff)
115 * Make sure vertical spacing is correct
116 * pretty-print targets
117 * regularize how backslash-newline is done.  Just one space between text
118   and backslash should be the rule.  Update makefile-mode to allow this.
119   (set column to 0, probably)
120 Omit program transform vars from header if no program installed.  This
121 is currently pretty hard to do.  (But with beautification code it
122 would probably be easy)
124 It should be possible to have ansi2knr in just one place in a package.
125 Jim Meyering says just rely on configure to make links as appropriate.
126 Maybe introduce syntax like this:
127         AUTOMAKE_OPTIONS = ../ansi2knr
128 ?  Consider putting it into AC_CONFIG_AUX_DIR
130 Lex, yacc support:
131 * It would be nice to automatically support using bison's better features
132   to rename the output files.  This requires autoconf support
133 * Consider supporting syntax from autoconf "derived:source", eg:
134         y.tab.c:perly.y
135   for yacc and lex source
136 * if AC_PROG_LEX used, ensure LEXLIB is in foo_LDADD
137 * require AC_DECL_YYTEXT for lex
139 require AC_PROG_CXX if any C++ source files found?
140 Better support for C++ all around
142 Write autoconf macro to do all work necessary for automake.  Eg define
143 PACKAGE, VERSION, etc.
145 'maintainer-clean' should "rm -rf .deps".  Ditto distclean
146 Should look for clean-local targets in Makefile.am.
148 It might be cool to generate .texi dependencies by grepping for
149 @include.  (If done, it should be done the same way C dependencies are
150 done)
152 It would be good to check some parts of GNU standards.  Already check
153 for install-sh and mkinstalldirs.  What else is required to be in
154 package by GNU standards or by automake?
155 Some things for --strictness=gnits:
156 * "cd $(foo); something" is an error in a rule.  Should be:
157   "cd $(foo) && something"
158 * Look for 'ln -s' and warn about using $(LN) and AC_PROG_LN_S
159 * Look for $(LN) and require AC_PROG_LN_S
161 automake.in: should ".cc" really -> "$o"?  This doesn't really seem
162 right, but maybe it is so names can be rewritten uniformly?  Must
163 check
165 Auto-distribute "ChangeLog.[0-9]+"?  "ChangeLog.[a-z]+"?
167 Internationalize. [ gettext doesn't have the necessary machinery yet ]
168 am_error should use printf-style arguments (for eventual gettext scheme)
170 François says the ordering of files in a distribution should be as follows:
171 * README
172 * source files
173 * derived files
174 I agree, but I don't see how to implement this yet.
175 It might be easier if "derived files" is limited to those that
176 Automake itself knows about, eg output of yacc.
178 Check all source files to make sure that FSF address is up-to-date.
179 --gnits or --gnu only.
181 Merge each -vars.am file with corresponding ".am" file.  Can do this
182 because of changes to &file_contents.
184 Looked at a program called 'ezmake', which seems to do something
185 similar.  The only idea there that is possibly worth stealing is using
186 globs in definitions.  Also has negations.  Eg in a directory with
187 files a.c, b.c and c.c, the line:
188         foo_SOURCES = *.c ~c.c
189 would be equivalent to:
190         foo_SOURCES = a.c b.c
191 Is this worth implementing?
193 Should libexec programs have the name transform done on them?
195 Order the output rules sensibly, so FOO_SOURCES and FOO_OBJECTS are
196 together and rules are in the usual order.
198 Make the output minimal: only output definitions for variables that
199 are used.
201 Look at dist's jmake for ideas.  dist is the name of the distribution
202 including Metaconfig.  Perl uses it.
204 Should handle directory hierarchies deeper than 2.  Right now there is
205 some support for this.  Here are some of the issues:
206 * Should handle AC_CONFIG_SUBDIRS, ie must handle configure.in in subdirs
207 * Must handle SUBDIRS in subdir Makefile.am's
209 These can both be handled via dist-hook:
210 . Consider supporting guile-style PLUGIN directories automatically?
211 . Consider allowing eg "foo/bar" to appear in EXTRA_DIST, and generating
212   code to make directory foo at dist time
214 ================================================================
216 Document:
219 Defined variables, their meanings, and their effects:
221 DEFS           cpp definitions
222 INCLUDES       -I options to cpp
223 CPPFLAGS       more cpp flags
224 CFLAGS         flags to cc
225 COMPILE        how to compile a C program
226 LINK           how to link a C program
228 DIST_SUBDIRS   directories which are copied verbatim into the
229                distribution.  Used eg for directories holding
230                only example code (which don't have their own
231                makefile).  This variable might be a bad idea.
232   [ should just require a new Makefile.am.  They are supposed to be
233     easy to write ]
235 Document customary ordering of Makefile.am.  From François.
237 must document that @ALLOCA@ works in _LDADD
239 Must document BUILT_SOURCES variable.  See depend.am.
241 Should include extended version of diagram from Autoconf (suggested by
242 Greg Woods)
244 Must document macros which can be used when writing one's own rules.
245 Must document INCLUDES
247 Document gettext support
249 Make a definition of the term "source"
251 need xref to libtool in docs
253 document how to use Automake with CVS.  Idea from Mark Galassi.  Also
254 include Greg Woods' more sophisticated "cvs-dist" target.
256 document that there is no uninstall-{exec,data}
258 document rebuilding configure.  CONFIGURE_DEPENDENCIES
260 document TAGS_DEPENDENCIES
262 ================================================================
264 Libraries:
266 * Should support standalone library along with subdir library in same
267   Makefile.am.  Maybe: turn off "standalone" mode if library's Makefile.am
268   is not only one specd? [ add an option for this ]
270 ================================================================
272 Longer term:
274 Have a program that generates a Makefile on stdout, passes it through
275 a "config.status"-style filter, and thence into make.  Why bother,
276 other than the gee-whiz factor?
278 It might be interesting to figure out how a GNU system could use
279 Makefile.am's without resorting to Automake.  This might be impossible
280 in a practical sense.
282 Would it be useful to integrate in some way with the Debian package
283 building utility?  Must check.  maybe it would be possible to deal
284 with all the different package utilities somehow.  Lately I've been
285 hearing good things about the RedHat packaging utilities.  Why are
286 there so many of these?  Are they fun to write or something?
287 The RedHat package utility is called RPM; see
288         ftp://ftp.redhat.com/pub/code/rpm
289 It actually has problems, like no configure script and no documentation.
291 ================================================================
293 A tool to guess what the local Makefile.am should look like:
295 * Probably integrate with autoscan
296 * Use various simple rules to determine what to do:
297   * get name of top directory, sans version info
298   * search for .c files with 'main' in them
299     * if in main.c, use directory name for program
300     * if in more than one, generate multiple programs
301     * if not found, generate a library named after directory
302   * order subdir searches correctly: lib first, src last
303   * assume 'testsuite' dir means we are using dejagnu
304 * maybe be smart about reading existing Makefile.am, so tool
305   can be run for incremental changes?  You could imagine:
307         Makefile.am:
308                 autoproject --incremental
310 ================================================================
312 Stuff NOT to do, and why:
314 consider auto-including any file that matches "*.in".
315   [ no: po/Makefile.in shouldn't be included ]
317 must look at mkid to see how it works (for subdir usage)
318   [ right now, it doesn't.  i don't see a simple fix right now ]
320 if configure.in not found, move up a directory and try again?  This
321 could eliminate a common source of problems.
322   [ this is just a bad idea ]
324 * scripts are installed in $exec_prefix/bin, not $prefix/bin
325   Bug or feature?
326   [ the consensus on Gnits is that this isn't required.
327     doubters can work around it anyway ]
329 * make the auto-dep code crash if GNU make not in use?
330   (doesn't it already?)