Changeset 9113


Ignore:
Timestamp:
2007-10-03T21:22:51+02:00 (10 years ago)
Author:
juhosg
Message:

fix target profiles, (closes: 2440)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/target.mk

    r9099 r9113  
    1 #  
     1# 
    22# Copyright (C) 2007 OpenWrt.org 
    33# 
     
    7676endef 
    7777 
    78 ifeq ($(if $(TARGET_BUILD),$(DUMP)),1) 
    79   -include $(PLATFORM_DIR)/profiles/*.mk 
    80   ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) 
     78ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)) 
     79  define IncludeProfiles 
     80    -include $(PLATFORM_DIR)/profiles/*.mk 
    8181    -include $(PLATFORM_SUBDIR)/profiles/*.mk 
     82  endef 
     83else 
     84  define IncludeProfiles 
     85    -include $(PLATFORM_DIR)/profiles/*.mk 
     86  endef 
     87endif 
     88 
     89ifeq ($(TARGET_BUILD),1) 
     90  $(eval $(call IncludeProfiles)) 
     91else 
     92  ifeq ($(DUMP),) 
     93    $(eval $(call IncludeProfiles)) 
    8294  endif 
    8395endif 
Note: See TracChangeset for help on using the changeset viewer.