]> git.lyx.org Git - lyx.git/commitdiff
newbindist target
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 7 Apr 2002 15:35:07 +0000 (15:35 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 7 Apr 2002 15:35:07 +0000 (15:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3934 a592a061-630c-0410-9148-cb99ea01b6c8

Makefile.am

index 75ec2980d0d8c38d0a77afacc0ef68f22233c107..60f348f3b416685a4fc3a45c48fc321c29fd909e 100644 (file)
@@ -18,7 +18,7 @@ EXTRA_DIST = ANNOUNCE INSTALL.OS2 INSTALL.autoconf README.OS2 \
 man_MANS = lyx.1
 
 ## Needed by bindist
-bindistdir=lyxbin
+bindistdir=$(PWD)/lyxbin
 bindistfile=$(PACKAGE)-$(VERSION)-bin.tar.gz
 
 lyx.1:
@@ -54,6 +54,28 @@ bindist:
        @echo "*** $(bindistfile) has been created."
 
 
+newbindist:
+       rm -f $(bindistfile)
+       $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$(bindistdir) install-strip
+       if test -f $(top_srcdir)/README.bin ; then \
+         $(INSTALL) $(top_srcdir)/README.bin \
+               $(bindistdir)$(prefix)/README.bin ; \
+       fi
+       (cd $(bindistdir)$(prefix) ; $(AMTAR) cf - . ) | \
+       GZIP=$(GZIP_ENV) gzip > $(bindistfile)
+       -chmod -R a+w $(bindistdir) > /dev/null 2>&1 ; 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."
+
+
 doxydoc: sourcedoc/Doxyfile
        cd sourcedoc; \
        doxygen ./Doxyfile