PATCH: installation / packaging
Stefan Seefeld
stefan at codesourcery.com
Wed Jan 4 04:33:09 UTC 2006
The appended patch adds or completes the following targets:
doc: builds quickstart, tutorial, and reference, in maintainer-mode
doc2src: copies quickstart, tutorial, and reference into srcdir if
necessary (i.e. if srcdir != builddir)
install: Using a new 'DESTDIR' variable, make can install into a
distinct 'virtual root', useful for 'bdist' target.
sdist: Creates source distribution (including basically the full
source tree minus some CVS-related bookkeeping files as well
as some m4 temporaries.
bdist: Creates binary distribution, by tarring all it can find
inside $DESTDIR.
To create a source distribution simply do:
configure
make doc maintainer_mode=1
make doc2src
make sdist
(The root directory name is determined from configure.ac to be
sourceryvsipl++-1.0, but for snapshot packages one could also call
make sdist PACKAGE_VERSION=`date +%Y-%m-%d`
)
A typical command sequence to create a multi-config binary package
would be:
configure --some-optimization-flags
make
make doc maintainer_mode=1
make install DESTDIR=tmp suffix=-opt
configure --some-debug-flags
make
make install DESTDIR=tmp suffix=-debug
make bdist DESTDIR=tmp
Once the patch is approved I will make the necessary (and straight forward)
changes to the src-release script to use this new build system logic.
Mark, doc/csl-docbook/GNUmakefile.inc contains two changes:
* I prefixed all installation paths with $(DESTDIR) to make the above
work for documentation.
* I fixed the %.html target for the case where $(docbook_html) is not set,
as that case seems to have slipped through in Carlos' latest adjustments.
Regards,
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: packaging.patch
Type: text/x-patch
Size: 18350 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20060103/d704f21b/attachment.bin>
More information about the vsipl++
mailing list