VirtualBox

Changeset 31133 in vbox


Ignore:
Timestamp:
Jul 27, 2010 9:40:38 AM (14 years ago)
Author:
vboxsync
Message:

Additions/linux/Makefile.kmk: Please use $(RM) and $(CP) even for platform specfic rules. Suggested a better (and safer) way of copying and cleaning up the archives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/Makefile.kmk

    r31129 r31133  
    55
    66#
    7 # Copyright (C) 2006-2007 Oracle Corporation
     7# Copyright (C) 2006-2010 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    6868 # OSE only contains the source code for this
    6969 VBOX_SELINUX_CMPLD := $(PATH_SUB_CURRENT)/selinux-fedora/vbox_x11.pp
    70  VBOX_LNX_ADD_ARCHIVE.x86 := $(PATH_OUT_BASE)/linux.x86/$(KBUILD_TYPE)/bin/additions/VBoxGuestAdditions-x86-r$(VBOX_SVN_REV).tar.bz2
     70 VBOX_LNX_ADD_ARCHIVE.x86   := $(PATH_OUT_BASE)/linux.x86/$(KBUILD_TYPE)/bin/additions/VBoxGuestAdditions-x86-r$(VBOX_SVN_REV).tar.bz2
    7171 VBOX_LNX_ADD_ARCHIVE.amd64 := $(PATH_OUT_BASE)/linux.amd64/$(KBUILD_TYPE)/bin/additions/VBoxGuestAdditions-amd64-r$(VBOX_SVN_REV).tar.bz2
    72 ifndef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
     72 ifndef VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE
    7373  VBOX_LNX_ADD_ARCHIVES := $(PATH_BIN)/additions/VBoxGuestAdditions-$(KBUILD_TARGET_ARCH)-r$(VBOX_SVN_REV).tar.bz2
    74 else
     74 else
    7575  VBOX_LNX_ADD_ARCHIVES := \
    7676        $(VBOX_LNX_ADD_ARCHIVE.x86) \
    7777        $(VBOX_LNX_ADD_ARCHIVE.amd64)
    78 endif
     78 endif
    7979 BLDDIRS     += \
    8080        $(VBOX_LNX_ADD_INST_OUT_DIR) \
     
    9595        $(VBOX_LNX_ADD_ARCHIVES) \
    9696        $(PATH_BIN)/additions/VBoxGuestAdditions-dbg.tar.bz2
    97  OTHER_CLEAN += $(PACKING)
    98 endif
     97 OTHER_CLEAN += \
     98        $(PACKING) \
     99        $(foreach file, $(VBOX_LNX_ADD_ARCHIVES), $(VBOX_LNX_ADD_INST_STAGE_DIR)$(subst -r$(VBOX_SVN_REV),,$(notdir $(file))))
     100endif # !VBOX_OSE
    99101
    100102
     
    482484                $$(INSTARGET_LnxAdd-scripts) \
    483485                $(VBOX_VERSION_STAMP)
    484         $(QUIET)($(foreach FILE,$(wildcard \
    485             $(VBOX_LNX_ADD_INST_STAGE_DIR)$(VBOX_LNX_ADD_PACKAGE_NAME)-*.tar.bz2), \
    486             rm $(FILE);))
    487         $(QUIET)($(foreach FILE,$(VBOX_LNX_ADD_ARCHIVES), \
    488             cp $(FILE) \
    489             $(VBOX_LNX_ADD_INST_STAGE_DIR)$(subst -r$(VBOX_SVN_REV),,$(notdir $(FILE)));))
     486        $(QUIET)$(RM) -f $(foreach file, $(VBOX_LNX_ADD_ARCHIVES), $(VBOX_LNX_ADD_INST_STAGE_DIR)$(subst -r$(VBOX_SVN_REV),,$(notdir $(file))))
     487        $(QUIET)$(foreach file, $(VBOX_LNX_ADD_ARCHIVES), \
     488                $(CP) -f $(file) $(VBOX_LNX_ADD_INST_STAGE_DIR)$(subst -r$(VBOX_SVN_REV),,$(notdir $(file)))$(NLTAB) )
    490489        $(QUIET)$(VBOX_MAKESELF) --nocomp $(VBOX_LNX_ADD_INST_STAGE_DIR) $@ \
    491490                "VirtualBox $(VBOX_VERSION_STRING) Guest Additions for Linux" \
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