build: use $(@D) for eolian directory name
authorMike Blumenkrantz <zmike@samsung.com>
Fri, 20 Jul 2018 23:21:31 +0000 (19:21 -0400)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Wed, 1 Aug 2018 04:27:58 +0000 (13:27 +0900)
this is cosmetic; $(@D) is the standard automatic variable set to the directory
part of the target

https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html

Differential Revision: https://phab.enlightenment.org/D6659

src/Makefile_Eolian_Cxx_Helper.am
src/Makefile_Eolian_Files_Helper.am

index 52426b8..94f581e 100644 (file)
@@ -14,5 +14,5 @@ SUFFIXES += .eo.hh
 
 %.eo.impl.hh %.eo.hh: %.eo $(_EOLIAN_CXX_DEP)
        $(AM_V_EOLCXX) \
-       $(MKDIR_P) $(dir $@); \
+       $(MKDIR_P) $(@D); \
        $(EOLIAN_CXX) $(EOLIAN_FLAGS) -o $@ $<
index 463433c..37d5114 100644 (file)
@@ -7,20 +7,20 @@ SUFFIXES = .eo .eo.c .eo.h .eo.legacy.h .eot .eot.h
 
 %.eo.c: %.eo ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
-       $(MKDIR_P) $(dir $@); \
+       $(MKDIR_P) $(@D); \
        $(EOLIAN_GEN) $(EOLIAN_FLAGS) $(EOLIAN_GEN_FLAGS) -gc -o c:$@ $<
 
 %.eo.h: %.eo ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
-       $(MKDIR_P) $(dir $@); \
+       $(MKDIR_P) $(@D); \
        $(EOLIAN_GEN) $(EOLIAN_FLAGS) $(EOLIAN_GEN_FLAGS) -gh -o h:$@ $<
 
 %.eot.h: %.eot ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
-       $(MKDIR_P) $(dir $@); \
+       $(MKDIR_P) $(@D); \
        $(EOLIAN_GEN) $(EOLIAN_FLAGS) $(EOLIAN_GEN_FLAGS) -gh -o h:$@ $<
 
 %.eo.legacy.h: %.eo ${_EOLIAN_GEN_DEP}
        $(AM_V_EOL) \
-       $(MKDIR_P) $(dir $@); \
+       $(MKDIR_P) $(@D); \
        $(EOLIAN_GEN) $(EOLIAN_FLAGS) $(EOLIAN_GEN_FLAGS) -gl -o l:$@ $<