1 \input texinfo @c -*-texinfo-*-
2 @setfilename INSTALL.info
12 INSTALL - installing StepMake
14 @unnumberedsec Description
17 This page documents installation and usage of StepMake
19 @unnumberedsec Abstract
22 StepMake is a drop-in package that takes care of generic Makefile and
23 packaging/distribution issues. It enables you to write only the simplest of
24 Makefile snippets, while providing a series powerful make targets. Features
25 include speed, wildcarding, out/ dir build, stateless Makefiles and package
26 clustering. It includes some handy scripts for making (package-)diffs and
27 patches, making binary distributions etc.
29 To use StepMake with your package, you do something remotely like:
32 tar xzf releases/stepmake-0.1.23
33 cd package-x.x.x/ # package to be StepMake-ised
34 ./../stepmake-0.1.23/bin/stepmakeise.sh
38 You'll have to customize at least the files:
46 to your package's needs. You might want to take a look at:
49 ./make/Toplevel.make.in
55 Also, you should put a Makefile in every subdirectory of your
56 package. These makefiles generally are quite simple, e.g. this
57 is a the makefile for an include directory of LilyPond:
60 # lily/include/Makefile
63 include $(depth)/make/Stepmake.make
67 it will identify all @code{.h, .hh, ...} files and take care of distributing
70 There's a @file{make/Template.make} that you can use as an example.
71 See also the Makefiles in the LilyPond or Yodl package.
73 Once included in your package, StepMake (or in fact, any
74 StepMake-ised package) behaves as a normal subdirectory;
75 make commands such as 'make dist' recurse into the stepmake tree
76 (For a list of available targets, type @code{make help} after
78 Stepmake (and any changes made) will be distributed with the main
79 pacakage. However, StepMake doesn't lose its independency, change
80 to the stepmake directory, and it'll behave as a main package.
81 You shouldn't version directory names of subpackages, otherwise
82 you'll see that package twice in each patch when you upgrade.
84 @unnumberedsec Prerequisites
87 To use StepMake with a package you need:
90 @item A GNU system: StepMake is known to work on these GNU systems: Linux
91 (PPC, intel), FreeBSD, AIX, NeXTStep, IRIX, Digital Unix and Solaris.
92 If you have the Cygnus WINDOWS32 port of the GNU utils, it will even
93 work in Windows NT/95, but we don't promise to support it.
98 @unnumberedsec Recommended
101 Although not strictly necessary, these are recommended to have.
105 @item Yodl. All documentation will be in Yodl. (1.22.jcn3)
109 @unnumberedsec Internals
112 Over time, we put a lot of effort in the configure, make, distribute
113 system (CMDS) for LilyPond. Some months ago, we realised it was not
114 standard GNU --- we require GNU make for building, and Python for extra
115 scripting. In an effort to be more GNU, we tried automake, but after two
116 weeks we realised the costs were too high for us and we reverted to our
117 own system (see @file{automake.urgh}). Not long after that i was confronted
118 with two other packages that lacked a decent CMDS. I realised that Lily's
119 would be perfect, it's modular and easy. The only problem was to make a
120 clean cut between generic and Lily specific stuff. The result was
121 StepMake: a bunch of generic makefiles, found in:
124 stepmake/stepmake/*.make
128 eneric helper scripts:
136 and modular configure functions:
139 stepmake/configure.in
141 stepmake/config.hh.in
142 stepmake/config.make.in
146 Of course, every package has its own configure- and make peculiarities.
147 The best way to create the configure scripts is to copy them from
148 stepmake@footnote{Actually, stepmake/bin/stepmakeise.sh will do
149 that for you.} into you package's toplevel directory. For most
150 packages, you'll only have to comment in/out some functions in
153 Package specific makefiles go in:
162 and are included by the generic StepMake makefiles.
164 @unnumberedsec Maintaining
167 If you want to make and manage (binary) distributions, create and apply
168 patches, you'll need some framework that's outside of the package's
170 For a number of simple maintenance tasks, StepMake will therefore assume
171 the following directory structure:
173 Check and update the layout with the command:
176 ./stepmake/bin/stepdirs.sh
180 @unnumberedsec See also
183 @code{../PATCHES.txt}
185 @unnumberedsec Configuring
188 Stepmake comes with a number of precooked configure functions for
189 general needs, such as AC_STEPMAKE_COMPILE for simple C development
190 and AC_STEPMAKE_CXX for C++.
192 See configure.in and comment in/out the functions that your package
193 needs. For specific needs, you can write your own autoconf code,
194 see @code{info autoconf}.
198 doos/ # gnu/windows32 build and binary releases
199 harmonia -> harmonia-x.y.z
201 lilypond -> lilypond-x.y.z # symlink to development directory
202 lilypond-x.y.z/ # current development
203 patches/ # patches between different releases
204 RedHat/BUILD # RedHat build and binary releases
207 releases/ # .tar.gz releases
208 test/ # tarballs and diffs from current version
214 with prefix @file{$HOME/usr/src}
215 and (for building rpms only) in @file{$HOME/.rpmrc}:
218 topdir: /home/fred/usr/src/RedHat
223 @unnumberedsec Authors
226 @item @email{hanwen@@cs.uu.nl, Han-Wen Nienhuys},
227 @uref{http://www.cs.uu.nl/people/hanwen}
231 @item @email{janneke@@gnu.org, Jan Nieuwenhuizen},
232 @uref{http://www.xs4all.nl/~jantien}
235 @item @email{daboys@@austin.rr.com, Jeffrey B. Reed},