[project @ 2005-03-08 11:56:55 by simonmar]
authorsimonmar <unknown>
Tue, 8 Mar 2005 11:56:57 +0000 (11:56 +0000)
committersimonmar <unknown>
Tue, 8 Mar 2005 11:56:57 +0000 (11:56 +0000)
Allow for optional binary installation

Makefile
distrib/Makefile-bin.in

index da862f1..4f900d5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -269,6 +269,7 @@ binary-dist::
        echo "PACKAGE_LIB_PRL_SCRIPTS = $($(Project)BinDistLibPrlScripts)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        echo "PACKAGE_LIB_SPLICED_FILES = $($(Project)BinDistLibSplicedFiles)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        echo "PACKAGE_BINS = $($(Project)BinDistBins)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
+       echo "PACKAGE_OPT_BINS = $($(Project)BinDistOptBins)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        echo "PACKAGE_LINKS = $($(Project)BinDistLinks)" >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        cat $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile-bin.in >> $(BIN_DIST_TMPDIR)/$(BIN_DIST_NAME)/Makefile.in
        @echo "Generating a shippable configure script.."
index 0d28672..f4497da 100644 (file)
@@ -223,6 +223,9 @@ install-bin:
        for i in $(PACKAGE_BINS) ""; do \
           if test -n "$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \
        done;
+       for i in $(PACKAGE_OPT_BINS) ""; do \
+          if test -n "$$i" -a ! -e "$(bindir)/$$i" ; then $(INSTALL_BIN) bin/$(platform)/$$i$(exeext) $(bindir); fi; \
+       done;
        @for i in $(VERSION_SYMLINKS_FOR) ""; do \
           if [ "x$$i" != "x" ]; then           \
                ( cd $(bindir);                 \