Nothing
[automake.git] / TODO
blob9e20f26b9faf614f3de43f523830626408bb7b5f
1 Top priorities:
2 * DOCUMENT
3 * Must rewrite am_install_var.  Should break into multiple functions.
4   This will allow the callers to be a little smarter.
5 * Rewrite clean targets.
6 * Expand test suite.
8 Check all require_file errors to see if any should reference a line in
9 Makefile.am or configure.in.
11 Makefile.in must now depend on configure.in
13 Consider using Ulrich's test suite idea
14 If so, also allow support for Cygnus-style dejagnu-based test suites
15 via an option
17 when in subdir that itself has subdirs, might need to do
18 include-by-reference TAGS file.
20 Think about ways to make automake fit better with Cygnus-style trees.
22 Use recode in dist target when MAIN_CHARSET specified.  Read caveats
23 in automake.in before doing this.  Note the same problem used to apply
24 to the no-dependencies option; maybe it still should?  Note also that
25 each Makefile.am must be rewritten at "make dist" time if
26 MAINT_CHARSET and DIST_CHARSET are not identical.  NOTE: gettext must
27 arrange for all .po files not to be recoded.  In the long term this
28 might be a problem (consider when some systems use Unicode but the
29 rest do not)
31 Handle dist-zoo and dist-zip.  Generally add more DOS support.  Maybe
32 run "doschk" (why isn't this merged with "pathchk"?) when doing a
33 dist.  Do whatever else François says here...
35 Add support for html via an option.  Use texi2html.  Use
36 "html_TEXINFOS", and htmldir = .../html.  Include html files in
37 distribution.  Also allow "html_DATA", for raw .html files.
38   [ when will texinfo support html? ]
40 if configure.in not found, move up a directory and try again?  This
41 could eliminate a common source of problems.
43 uninstall and pkg-dirs should rm -rf the dir.
45 a potential bug: configure puts "blah.o" into LIBOBJS, thus implying
46 these files can't be de-ansified.  Not a problem?
48 In general most .am files should be merged into automake.  For
49 instance all the "clean" targets could be merged by keeping lists of
50 things to be removed.  This would be a lot nicer looking.  Note that
51 the install targets probably should not be merged; it is sometimes
52 useful to only install a small part.
54 Clean up the output:
55 * Order rules sensibly
56 * Ensure every line has a purpose.  Omit unused stuff
57 * Eliminate extraneous rules when possible (eg 'install-am' stuff)
58 * Make sure vertical spacing is correct
59 * pretty-print targets
60 * regularize how backslash-newline is done.  Just one space between text
61   and backslash should be the rule.  Update makefile-mode to allow this.
62   (set column to 0, probably)
64 It should be possible to have ansi2knr in just one place in a package.
65 Jim Meyering says just rely on configure to make links as appropriate.
66 Maybe introduce syntax like this:
67         AUTOMAKE_OPTIONS = ../ansi2knr
70 Consider automatic support for ".y" files.
71   [ not right now; it is nice to be able to print the number of
72     expected conflicts, and we can't handle that ]
73 What about ".l" files?
74 Consider supporting syntax from autoconf "derived:source", eg:
75         y.tab.c:perly.y
77 Write autoconf macro to do all work necessary for automake.  Eg define
78 PACKAGE, VERSION, etc.
80 'maintainer-clean' should "rm -rf .deps".  Ditto distclean
81 Should look for clean-local targets in Makefile.am.
83 Think about writing a small tool to guess what the local Makefile.am
84 should look like.
86 It might be cool to generate .texi dependencies by grepping for
87 @include.  (If done, it should be done the same way C dependencies are
88 done)
90 It would be good to check some parts of GNU standards.  Already check
91 for install-sh and mkinstalldirs.  What else is required to be in
92 package by GNU standards or by automake?
93 Some things for --strictness=gnits:
94 * "cd $(foo); something" is an error in a rule.  Should be:
95   "cd $(foo) && something"
97 automake.in: should ".cc" really -> "$o"?  This doesn't really seem
98 right, but maybe it is so names can be rewritten uniformly?  Must
99 check
101 Auto-distribute "ChangeLog.[0-9]+"?  "ChangeLog.[a-z]+"?
103 Internationalize. [ gettext doesn't have the necessary machinery yet ]
104 am_error should use printf-style arguments (for eventual gettext scheme)
106 François says the ordering of files in a distribution should be as follows:
107 * README
108 * source files
109 * derived files
110 I agree, but I don't see how to implement this yet.
111 It might be easier if "derived files" is limited to those that
112 Automake itself knows about, eg output of yacc.
114 Should COPYING.LIB be distributed?
116 Check all source files to make sure that FSF address is up-to-date.
117 --gnits or --gnu only.
119 Merge each -vars.am file with corresponding ".am" file.  Can do this
120 because of changes to &file_contents.
122 Looked at a program called 'ezmake', which seems to do something
123 similar.  The only idea there that is possibly worth stealing is using
124 globs in definitions.  Also has negations.  Eg in a directory with
125 files a.c, b.c and c.c, the line:
126         foo_SOURCES = *.c ~c.c
127 would be equivalent to:
128         foo_SOURCES = a.c b.c
129 Is this worth implementing?
131 Should libexec programs have the name transform done on them?
133 Order the output rules sensibly, so FOO_SOURCES and FOO_OBJECTS are
134 together and rules are in the usual order.
136 Make the output minimal: only output definitions for variables that
137 are used.
139 Look at dist's jmake for ideas.  dist is the name of the distribution
140 including Metaconfig.  Perl uses it.
142 Should handle directory hierarchies deeper than 2.  Right now there is
143 some support for this.  Here are some of the issues:
144 * Should handle AC_CONFIG_SUBDIRS, ie must handle configure.in in subdirs
145 * Must handle SUBDIRS in subdir Makefile.am's
146 * Must handle AC_CONFIG_AUX_DIR
147   * FIXME must already look in .. and ../..
149 ================================================================
151 Document:
154 Defined variables, their meanings, and their effects:
156 DEFS           cpp definitions
157 INCLUDES       -I options to cpp
158 CPPFLAGS       more cpp flags
159 CFLAGS         flags to cc
160 COMPILE        how to compile a C program
161 LINK           how to link a C program
163 DIST_SUBDIRS   directories which are copied verbatim into the
164                distribution.  Used eg for directories holding
165                only example code (which don't have their own
166                makefile).  This variable might be a bad idea.
168 lib_LIBADD      code conditionally included in a library
169                 This probably needs to be redone anyway.
171 SUFFIXES        additional suffixes
173 Document customary ordering of Makefile.am.  From Franc,ois.
175 Must document BUILT_SOURCES variable.  See depend.am.
177 How to deal with @LIBOBJS@.
178 configure scanning
179 putting .h files into blah_SOURCES is ok now
180 version.texi handling
181 gettext support
182 all options
184 Should include extended version of diagram from Autoconf (suggested by
185 Greg Woods)
187 ================================================================
189 Libraries:
191 * Should support standalone library along with subdir library in same
192   Makefile.am.  Maybe: turn off "standalone" mode if library's Makefile.am
193   is not only one specd? [ add an option for this ]
194 * Need a way to handle shared libraries.
195   It would be really interesting to be able to easily (as the end-user)
196   make many different versions of the library: shared, static, profiling,
197   debug, optimized...
198   How does Perl handle this?  How does glibc handle this?
199   This needs autoconf support
201 Some examples to keep in mind while doing this:
202 * readline
203 * kpathsea
205 ================================================================
207 Have a program that generates a Makefile on stdout, passes it through
208 a "config.status"-style filter, and thence into make.  Why bother,
209 other than the gee-whiz factor?
211 Would it be useful to integrate in some way with the Debian package
212 building utility?  Must check.  maybe it would be possible to deal
213 with all the different package utilities somehow.
215 ================================================================
217 consider auto-including any file that matches "*.in".
218   [ no: po/Makefile.in shouldn't be included ]
220 must look at mkid to see how it works (for subdir usage)
221   [ right now, it doesn't.  i don't see a simple fix right now ]