+2000-06-27 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
+
+ * Makefile.am (bindist): new target.
+
+ * INSTALL: add instructions for doing a binary distribution.
+
+ * development/tools/README.bin.example: update a bit.
+
2000-06-26 Lior Silberman <slior@math.huji.ac.il>
* src/lyxrc.C:
architecture, use `make distclean' before reconfiguring for another
architecture.
-Stripping LyX
--------------
+Preparing a binary distribution for the use of others
+------------------------------------------------------
-A LyX binary for linux is about 1M when compiled without debug-information
-and with dynamic libraries. If yours is much bigger you probably compiled
-it with debug-informations (-g). If you don't want to debug LyX just enter
+ o Compile LyX with the right compiler switches for your
+ architecture. In particular you might want to ensure that
+ libraries like xforms and xpm are statically linked. To this end,
+ you can use a command like
- strip src/lyx
+ make LYX_LIBS='/foo/libforms.a /bar/libXpm.a'
-before installing. Note that this is done automatically for public
-versions.
+ Moreover, make sure you use the --without-latex-config switch
+ of configure, since others might not be interested by your
+ configuration :-)
+
+ o Create a file README.bin describing your distribution and
+ referring to *you* if problems arise. As a model, you can use the
+ file development/tools/README.bin.example, which can be a good
+ starting point.
+
+ o Type `make bindist'. This will create a file
+ lyx-1.xx.yy-bin.tar.gz. Rename it to reflect you architecture
+ and the peculiarities of your build (e.g. static vs. dynamic).
+
+ o Check that everything is correct by unpacking the distribution
+ in some private place and running it. In particular, check the
+ output of `ldd lyx' to know which libraries are really needed.
+
+ o Upload your binary file to ftp.lyx.org:/pub/lyx/uploads.
Problems
config development forms images
ETAGS_ARGS = --lang=c++
man_MANS = lyx.1
+
+## Needed by bindist
+bindistdir=lyxbin
+bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
+
lyx.1:
cp -p $(srcdir)/lyx.man lyx.1
rpm -ta ${PACKAGE}-${VERSION}.tar.gz ; \
rm lyx.xpm
+
+bindist:
+ mkdir $(bindistdir)
+ if test -f README.bin ; then \
+ $(INSTALL) README.bin $(bindistdir)/README.bin ; \
+ fi
+ $(MAKE) $(AM_MAKEFLAGS) install-strip prefix=`pwd`/$(bindistdir)
+ (cd $(bindistdir) ; tar cf - .) | gzip >$(bindistfile)
+ rm -rf $(bindistdir)
+ @if test -f README.bin ; then \
+ echo "*** Did you remember to check the contents of README.bin?" ; \
+ else \
+ echo "*** WARNING: You did not provide a README.bin file." ; \
+ echo "*** Please make one now from the example file" ; \
+ echo "*** development/tools/README.bin.example" ; \
+ fi
+ @echo "*** It should mention any problem concerning your binary"
+ @echo "*** distribution and refer to *you* in case of problem."
+ @echo "*** $(bindistfile) has been created."
+