VirtualBox

Ignore:
Timestamp:
Jul 7, 2008 11:35:05 PM (16 years ago)
Author:
vboxsync
Message:

VBoxKeyboard4_TARSOURCES isn't right. Added missing cleanup of the tar.gz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/Makefile.kmk

    r10344 r10345  
    2525DEPTH = ../../../..
    2626include $(KBUILD_PATH)/header.kmk
     27
     28#
     29# Globals.
     30#
     31VBOX_VIRTUALBOX4_SRC := $(PATH_SUB_CURRENT)
     32
    2733
    2834# Disable the debugger for now, this is another story.
     
    343349PROGRAMS += VirtualBox4
    344350ifeq ($(filter-out freebsd linux openbsd netbsd solaris,$(KBUILD_TARGET)),) # X11
    345 DLLS += VBoxKeyboard4
    346 ## @todo convert to install target.
    347 OTHERS += $(PATH_BIN)/vboxkeyboard4.tar.gz
     351 DLLS += VBoxKeyboard4
     352 ## @todo convert to install target.
     353 OTHERS += $(PATH_BIN)/vboxkeyboard4.tar.gz
     354 CLEAN += $(PATH_BIN)/vboxkeyboard4.tar.gz
    348355endif
    349356INSTALLS += VirtualBox4.nls qt4-bin
     357
    350358
    351359#
     
    355363VBoxKeyboard4_SOURCES  = \
    356364        src/linux/keyboard-new.c
    357 VBoxKeyboard4_TARSOURCES = \
    358         $(VBoxKeyboard4_SOURCES) \
    359         src/linux/COPYING.LIB \
    360         src/linux/keyboard.h \
    361         src/linux/keyboard-layouts.h \
    362         src/linux/keyboard-list.h \
    363         src/linux/keyboard-tables.h \
    364         src/linux/keyboard-types.h \
    365         src/linux/Makefile
    366365VBoxKeyboard4_LIBS     = X11
    367366VBoxKeyboard4_LIBPATH  = $(VBOX_LIBPATH_X11)
     
    372371# redistributed with usable sources.
    373372#
    374 SOURCE_DIRECTORY = vboxkeyboard4
    375 DIRECTORY_PREFIX = src/linux/
    376 
    377 $(PATH_TARGET)/$(SOURCE_DIRECTORY):
    378         $(MKDIR) -p $(@D)
    379         $(LN_SYMLINK) $(abspath $(PATH_CURRENT))/$(DIRECTORY_PREFIX) $@
    380 
    381 $(PATH_BIN)/vboxkeyboard4.tar.gz: $(VBoxKeyboard4_TARSOURCES) $(PATH_TARGET)/$(SOURCE_DIRECTORY)
     373# This rule will link create a temporary symlink to src/linux/ and tar
     374# up the selected files into a tarball that is installed into the
     375# bin directory (probably belongs in /usr/shared/somewhere really,
     376# but wtf, it's not like we're even trying to be FHS compliant).
     377#
     378## @todo this should be tar'ed down into the output directory and installed using an install target.
     379$(PATH_BIN)/vboxkeyboard4.tar.gz: \
     380                $(VBoxKeyboard4_SOURCES) \
     381                src/linux/COPYING.LIB \
     382                src/linux/keyboard.h \
     383                src/linux/keyboard-layouts.h \
     384                src/linux/keyboard-list.h \
     385                src/linux/keyboard-tables.h \
     386                src/linux/keyboard-types.h \
     387                src/linux/Makefile
    382388        $(call MSG_TOOL,tar/gzip,,$@)
    383         $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(subst $(DIRECTORY_PREFIX),,$(VBoxKeyboard4_TARSOURCES))) | gzip - > $@
     389        $(QUIET2)$(RM) -f $(PATH_TARGET)/vboxkeyboard4 $@
     390        $(QUIET)$(LN_SYMLINK) $(VBOX_VIRTUALBOX4_SRC)/src/linux/ $(PATH_TARGET)/vboxkeyboard4
     391        $(QUIET)cd $(PATH_TARGET) \
     392                && tar -chvf - $(addprefix vboxkeyboard4/,$(notdir $^)) \
     393                   | gzip - > $@
     394        $(QUIET2)$(RM) -f $(PATH_TARGET)/vboxkeyboard4
    384395
    385396
     
    10941105testwrappers:: $(WRAPPERSFILE)
    10951106
    1096 $(warning VirtualBox4_BLDDIRS=$(VirtualBox4_BLDDIRS))
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