From: Jean-Marc Lasgouttes Date: Tue, 27 Jun 2000 15:24:11 +0000 (+0000) Subject: Re-implement rhe "bindist" Makefile target X-Git-Tag: 1.6.10~22151 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5ce5f0a6f765379fd65ffcbd16a2633d2ec5bea1;p=lyx.git Re-implement rhe "bindist" Makefile target git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@841 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/ChangeLog b/ChangeLog index 74e3a757a3..2cbca03ac2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-06-27 Jean-Marc Lasgouttes + + * 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 * src/lyxrc.C: diff --git a/INSTALL b/INSTALL index cc40f6085d..2a89c4b01a 100644 --- a/INSTALL +++ b/INSTALL @@ -251,17 +251,34 @@ the source code directory. After you have installed LyX for one 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 diff --git a/Makefile.am b/Makefile.am index 698ec378d2..125588285c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -10,6 +10,11 @@ EXTRA_DIST = ANNOUNCE OLD-CHANGES INSTALL.OS2 INSTALL.autoconf README.OS2 \ 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 @@ -24,3 +29,23 @@ rpmdist: dist 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." + diff --git a/development/tools/README.bin.example b/development/tools/README.bin.example index 25e4e6d69b..82d4210602 100644 --- a/development/tools/README.bin.example +++ b/development/tools/README.bin.example @@ -1,4 +1,4 @@ -README file for the binary distribution of LyX 1.0.2 +README file for the binary distribution of LyX 1.1.5 ====================================================== Please read the file README for general information on LyX. diff --git a/po/POTFILES.in b/po/POTFILES.in index b80c5a8da6..e7da1a54f5 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -50,6 +50,7 @@ src/insets/insetlabel.C src/insets/insetloa.C src/insets/insetlof.C src/insets/insetlot.C +src/insets/insetmarginal.C src/insets/insetparent.C src/insets/insetref.C src/insets/insettabular.C