VirtualBox

Changeset 8643 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
May 7, 2008 10:24:35 AM (17 years ago)
Author:
vboxsync
Message:

Solaris Installer: fix for SDK conditionally includes and other cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r8638 r8643  
    4646solaris-doc_SOURCES = \
    4747        $(if $(VBOX_OSE),,$(PATH_ROOT)/doc/License.txt=>LICENSE)
     48
     49#
     50# Note: Other than the files produced during packing (.pkg, .gzip etc.) all files that
     51# go into the temporary install folder $(SOLARISINSTDIR) should be part of $(SOLARISARCHFILES).
     52# For the files produced during packing they should be cleaned up promptly when the work is done.
    4853
    4954# Strip these binaries
     
    171176                vboxdevlink.sed \
    172177                $(PATH_ROOT)/doc/ReadMe-Solaris.txt \
    173                 Makefile.kmk
     178                Makefile.kmk \
     179                $(addprefix $(SOLARISINSTDIR)/,$(SOLARISSDK))
    174180        $(call MSG_L1,Installing binaries $(SOLARISINSTDIR))
     181        $(QUIET)$(RM) -f $(addprefix $(SOLARISINSTDIR)/,$(filter-out $(SOLARISDK),$(SOLARISARCHFILES)))
    175182        $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/additions
    176183        $(QUIET)$(MKDIR) -p $(SOLARISINSTDIR)/components
     
    273280        $(QUIET)$(SOLARISINSTDIR)/makepackage.sh $(SOLARISINSTDIR) $(PKGFILENAME) $(BUILD_TARGET_ARCH)
    274281        $(QUIET)$(INSTALL) -m 0755 $(SOLARISINSTDIR)/$(PKGFILENAME).tar.gz $(PATH_BIN)
     282        @# Clean up files emitted as side-effect or result of packing
     283        $(QUIET)$(RM) -f $(SOLARISINSTDIR)/$(PKGFILENAME).tar.gz
     284        $(QUIET)$(RM) -f $(SOLARISINSTDIR)/$(PKGFILENAME).pkg
    275285
    276286$(PATH_BIN)/$(DBGARCHIVE): \
     
    278288                Makefile.kmk
    279289        $(call MSG_L1,Installing debug binaries $(SOLARISDBGDIR))
    280         $(QUIET)rm -rf $(SOLARISDBGDIR)
     290        $(QUIET)$(RM) -Rf $(SOLARISDBGDIR)
    281291        $(QUIET)$(MKDIR) -p $(SOLARISDBGDIR)/components
    282292        $(QUIET)$(INSTALL) -m 0644 $(PATH_BIN)/vboxdrv                                                          $(SOLARISDBGDIR)/vboxdrv
     
    310320        $(QUIET)chmod 0644 $(PATH_BIN)/$(DBGARCHIVE)
    311321
    312 # Commented out for now
    313 #$(addprefix $(SOLARIS_INST_DIR)/,$(SOLARIS_SDK)): $$(subst $$(SOLARIS_INST_DIR)/,$(PATH_BIN)/,$$@)
    314 #       $(RM) -f $@
    315 #       $(MKDIR) -p $(@D)
    316 #       $(CP) -pf $< $@
    317 
     322$(addprefix $(SOLARISINSTDIR)/,$(SOLARISSDK)): $$(subst $$(SOLARISINSTDIR)/,$(PATH_BIN)/,$$@)
     323        $(call MSG_L1,Copying $@)
     324        $(QUIET)$(MKDIR) -p $(@D)
     325        $(QUIET)$(CP) -pf $< $@
     326
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette