Ticket #11115: MakefileEngine.patch

File MakefileEngine.patch, 2.1 KB (added by waddlesplash, 10 years ago)

patch

  • makefile-engine

    diff --git a/makefile-engine b/makefile-engine
    index 8e74f8d..617fd4e 100644
    a b endef  
    140140OBJS = $(SRCS_LIST_TO_OBJS)
    141141DEPENDS = $(SRCS_LIST_TO_DEPENDS)
    142142
    143 # create a unique list of paths to our sourcefiles
     143# create a unique list of paths to our sourcefiles and resources
    144144SRC_PATHS += $(sort $(foreach file, $(SRCS), $(dir $(file))))
     145RSRC_PATHS += $(sort $(foreach file, $(RSRCS), $(dir $(file))))
     146RDEF_PATHS += $(sort $(foreach file, $(RDEFS), $(dir $(file))))
    145147
    146148# add source paths to VPATH if not already present
    147149VPATH :=
    148150VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(SRC_PATHS))))
     151VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(RSRC_PATHS))))
     152VPATH += $(addprefix :, $(subst  ,:, $(filter-out $($(subst, :, ,$(VPATH))), $(RDEF_PATHS))))
    149153
    150154#   SETTING: build the local and system include paths, compose C++ libs
    151155ifneq (,$(filter $(CPU),x86 x86_64))
    rmapp ::  
    351355    -rm -f $(TARGET)
    352356
    353357# make it easy to install drivers for testing
    354 USER_BIN_PATH = /boot/home/config/add-ons/kernel/drivers/bin
    355 USER_DEV_PATH = /boot/home/config/add-ons/kernel/drivers/dev
     358USER_BIN_PATH := $(shell finddir B_USER_NONPACKAGED_ADDONS_DIRECTORY)/kernel/drivers/bin
     359USER_DEV_PATH := $(shell finddir B_USER_NONPACKAGED_ADDONS_DIRECTORY)/kernel/drivers/dev
    356360
    357361driverinstall :: default
    358362ifeq ($(strip $(TYPE)), DRIVER)
    else  
    369373    cp $(TARGET) $(INSTALL_DIR)/$(NAME)
    370374endif
    371375
     376# catalog installation directory
     377CATALOG_INSTALL_DIR := $(shell finddir B_USER_NONPACKAGED_DATA_DIRECTORY)/locale/catalogs
     378
    372379#   rule to install localization resources catalogs
    373380catalogsinstall :: catalogs
    374     mkdir -p "/boot/home/config/data/locale/catalogs/$(APP_MIME_SIG)"
    375     -cp $(CATALOGS_DIR)/*.catalog /boot/home/config/data/locale/catalogs/$(APP_MIME_SIG)
     381    mkdir -p "$(CATALOG_INSTALL_DIR)/$(APP_MIME_SIG)"
     382    -cp $(CATALOGS_DIR)/*.catalog "$(CATALOG_INSTALL_DIR)/$(APP_MIME_SIG)"
    376383
    377384# alternative way of storing localization catalogs - bind into program executable's resources
    378385bindcatalogs :