Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

>>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
>
| Lars> I want to change the bindist target to this:
>
| Could you enlighten me about what the changes are between old and new?

Use the DESTDIR machinery.
Change the tar prg.
also use GZIP_ENV
safer removal of bindistdir. (in that it works more often)
let make install-strip create the bindistdir

see for yourself:

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."


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."

-- 
        Lgb

Reply via email to