Changeset 732


Ignore:
Timestamp:
May 13, 2010, 1:30:17 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

packaging: Make sure target WPI package directories are created before copying into them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packaging/Makefile.packages

    r725 r732  
    174174_DIRS_ :=
    175175
     176
     177
     178
     179
     180
     181
     182
     183
    176184define EnsureDir
    177 ifneq ($(1),./)
    178 ifneq ($(1:%:/=:/),:/)
    179 ifeq ($$(filter $(1),$$(_DIRS_)),)
    180 _DIRS_ += $(1)
    181 $$(eval $$(call EnsureDir,$(dir $(1:%/=%))))
    182 $$(shell if not exist "$(subst /,\,$(1:%/=%))" mkdir "$(subst /,\,$(1:%/=%))" >nul 2>&1)
    183 endif
    184 endif
    185 endif
     185$(eval $(call DirRule,$(1)))$(1)
    186186endef
    187187
     
    20820892 := $($(1).PATH)/$$(92)
    209209$(1).TARGETS += $$(92)
    210 $$(eval $$(call EnsureDir,$$(dir $$(92))))
    211 $$(92): $$(91)
     210$$(92): $$(91) | $$(call EnsureDir,$$(dir $$(92)))
    212211ifeq ($$(93),1)
    213212        xcopy /s /e /o "$$(subst /,\,$$<)" "$$(subst /,\,$$@)"\ $(_EMPTY_)
Note: See TracChangeset for help on using the changeset viewer.