2009-07-14 20:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* config/dos/dir.cf
  * config/win/dir.cf
  * config/linux/dir.cf
  * config/os2/dir.cf
  * config/wce/dir.cf
    * DIR_LIST -> DIRS_OS
    * DIR_MAKE -> MK_OS
This commit is contained in:
Viktor Szakats
2009-07-14 18:52:49 +00:00
parent 7fecdbfec5
commit 02b2a299bf
6 changed files with 27 additions and 18 deletions

View File

@@ -17,6 +17,15 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-07-14 20:52 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/dos/dir.cf
* config/win/dir.cf
* config/linux/dir.cf
* config/os2/dir.cf
* config/wce/dir.cf
* DIR_LIST -> DIRS_OS
* DIR_MAKE -> MK_OS
2009-07-14 20:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/dos/install.cf
* config/win/install.cf

View File

@@ -16,19 +16,19 @@ ifeq ($(SHLVL),) # non-bash
# NOTE: The empty line directly before 'endef' HAVE TO exist!
# It causes that every commands will be separated by LF
define dir_mk
$(DIR_MAKE) -C $(file) $@
$(MK_OS) -C $(file) $@
endef
DIR_LIST = $(subst /,\,$(DIRS))
DIR_MAKE = $(subst /,\,$(MK))
DIR_RULE = $(foreach file, $(DIR_LIST), $(dir_mk))
DIRS_OS = $(subst /,\,$(DIRS))
MK_OS = $(subst /,\,$(MK))
DIR_RULE = $(foreach file, $(DIRS_OS), $(dir_mk))
else # bash
DIR_LIST = $(subst \,/,$(DIRS))
DIRS_OS = $(subst \,/,$(DIRS))
DIR_RULE =\
@for d in $(DIR_LIST); do \
@for d in $(DIRS_OS); do \
if [ -d $$d ]; then \
$(MAKE) -C $$d $@; \
fi \

View File

@@ -12,9 +12,9 @@ else
ifeq ($(SHLVL),) # non-bash
DIR_MAKE = $(subst /,\,$(MK))
DIR_LIST = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIR_LIST)) do $(DIR_MAKE) -C %d $@
MK_OS = $(subst /,\,$(MK))
DIRS_OS = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
else # bash

View File

@@ -12,9 +12,9 @@ else
ifeq ($(SHLVL),) # non-bash
DIR_MAKE = $(subst /,\,$(MK))
DIR_LIST = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIR_LIST)) do $(DIR_MAKE) -C %d $@
MK_OS = $(subst /,\,$(MK))
DIRS_OS = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
else # bash

View File

@@ -12,9 +12,9 @@ else
ifeq ($(SHLVL),) # non-bash
DIR_MAKE = $(subst /,\,$(MK))
DIR_LIST = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIR_LIST)) do $(DIR_MAKE) -C %d $@
MK_OS = $(subst /,\,$(MK))
DIRS_OS = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
else # bash

View File

@@ -12,9 +12,9 @@ else
ifeq ($(SHLVL),) # non-bash
DIR_MAKE = $(subst /,\,$(MK))
DIR_LIST = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIR_LIST)) do $(DIR_MAKE) -C %d $@
MK_OS = $(subst /,\,$(MK))
DIRS_OS = $(subst /,\,$(DIRS))
DIR_RULE = $(COMSPEC) /C for %d in ($(DIRS_OS)) do $(MK_OS) -C %d $@
else # bash