From: Michal Sojka Date: Fri, 4 Oct 2013 15:23:21 +0000 (+0200) Subject: One more fix in OMK rules - work around strange behavior of $(dir) function X-Git-Tag: v0.3.4~27 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/c9fdf52b83d3c86ed65ee23b0d345d71b6258f92 One more fix in OMK rules - work around strange behavior of $(dir) function --- diff --git a/Makefile.rules b/Makefile.rules index a3785b5..6c3095e 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -4,7 +4,7 @@ # (C) Copyright 2006, 2007, 2008, 2009, 2010, 2011 by Michal Sojka - Czech Technical University, FEE, DCE # # Homepage: http://rtime.felk.cvut.cz/omk/ -# Version: 0.2-110-g85ebc7c +# Version: 0.2-111-g8f9236e # # The OMK build system is distributed under the GNU General Public # License. See file COPYING for details. @@ -404,7 +404,7 @@ ifneq ($(LN_HEADERS),y) define cp_cmd if ! cmp -s $(1) $(2); then \ echo " CP $(1:$(OUTPUT_DIR)/%=%) -> $(2:$(OUTPUT_DIR)/%=%)"; \ - install -d $(CPHEADER_FLAGS) $(dir $(2)) && \ + install -d $(CPHEADER_FLAGS) `dirname $(2)` && \ install $(CPHEADER_FLAGS) $(1) $(2) || exit 1; \ fi endef diff --git a/orte/idl-compiler/Makefile.rules b/orte/idl-compiler/Makefile.rules index a3785b5..6c3095e 100644 --- a/orte/idl-compiler/Makefile.rules +++ b/orte/idl-compiler/Makefile.rules @@ -4,7 +4,7 @@ # (C) Copyright 2006, 2007, 2008, 2009, 2010, 2011 by Michal Sojka - Czech Technical University, FEE, DCE # # Homepage: http://rtime.felk.cvut.cz/omk/ -# Version: 0.2-110-g85ebc7c +# Version: 0.2-111-g8f9236e # # The OMK build system is distributed under the GNU General Public # License. See file COPYING for details. @@ -404,7 +404,7 @@ ifneq ($(LN_HEADERS),y) define cp_cmd if ! cmp -s $(1) $(2); then \ echo " CP $(1:$(OUTPUT_DIR)/%=%) -> $(2:$(OUTPUT_DIR)/%=%)"; \ - install -d $(CPHEADER_FLAGS) $(dir $(2)) && \ + install -d $(CPHEADER_FLAGS) `dirname $(2)` && \ install $(CPHEADER_FLAGS) $(1) $(2) || exit 1; \ fi endef