-TARGET=tizen-hd.edj
-
-PREFIX?=/usr
+PREFIX ?= /usr
INSTALL=install -c
EDC_DIR=$(DESTDIR)/opt/var/efl-theme-tizen-edc
THEME_DIR=$(DESTDIR)$(PREFIX)/share/elementary/themes
EDJE_FLAGS_VERBOSE_0 =
EDJE_FLAGS_VERBOSE_1 = -v
TMP_INC=tmp-inc.edc
-SRC=tizen.edc
+SRC=tizen
+TARGET=HD
-all: $(TARGET)
+all: light dark
+ echo $(escaped_prefix)
-$(TARGET): clean
- cp -f ./inc/$(@:.edj=-inc.edc) ./inc/$(TMP_INC)
+.SUFFIXES: .edc .edj
+.edc.edj:
+ echo $(SRC)
+ echo $(EDJE_FLAGS_$(V))
+ echo "/inc/$(@:.edj=)"
+ echo $(TARGET)/$(SRC)-$(TARGET)-$(@:.edj=)
+ cp -f ./inc/$(SRC)-$(@:.edj=-inc.edc) ./inc/$(TMP_INC)
edje_cc $(EDJE_FLAGS_$(V))\
- -id ./images/$(@:.edj=)\
- -id ./images/$(@:.edj=)/Content_views\
- -id ./images/$(@:.edj=)/Content_views/Gengrid\
- -id ./images/$(@:.edj=)/Controls\
- -id ./images/$(@:.edj=)/Controls/00_Progress_circle_bg\
- -id ./images/$(@:.edj=)/Controls/Button\
- -id ./images/$(@:.edj=)/Controls/Check_box\
- -id ./images/$(@:.edj=)/Controls/Radio_button\
- -id ./images/$(@:.edj=)/Focus\
- -id ./images/$(@:.edj=)/GUI_Style_Guide\
- -id ./images/$(@:.edj=)/Naviframe\
- -id ./images/$(@:.edj=)/Naviframe/Icon\
- -id ./images/$(@:.edj=)/Others\
- -id ./images/$(@:.edj=)/Overscrolling\
- -id ./images/$(@:.edj=)/Popup\
- -id ./images/$(@:.edj=)/Process\
- -sd ./sounds -fd ../objects $(SRC) $@
+ -id ./images/$(TARGET)/$(@:.edj=)\
+ -id ./images/$(TARGET)/$(@:.edj=)/Content_views\
+ -id ./images/$(TARGET)/$(@:.edj=)/Content_views/Gengrid\
+ -id ./images/$(TARGET)/$(@:.edj=)/Controls\
+ -id ./images/$(TARGET)/$(@:.edj=)/Controls/00_Progress_circle_bg\
+ -id ./images/$(TARGET)/$(@:.edj=)/Controls/Button\
+ -id ./images/$(TARGET)/$(@:.edj=)/Controls/Check_box\
+ -id ./images/$(TARGET)/$(@:.edj=)/Controls/Radio_button\
+ -id ./images/$(TARGET)/$(@:.edj=)/Copy_Paste\
+ -id ./images/$(TARGET)/$(@:.edj=)/Focus\
+ -id ./images/$(TARGET)/$(@:.edj=)/GUI_Style_Guide\
+ -id ./images/$(TARGET)/$(@:.edj=)/Map\
+ -id ./images/$(TARGET)/$(@:.edj=)/Naviframe\
+ -id ./images/$(TARGET)/$(@:.edj=)/Naviframe/Icon\
+ -id ./images/$(TARGET)/$(@:.edj=)/Overscrolling\
+ -id ./images/$(TARGET)/$(@:.edj=)/Popup\
+ -id ./images/$(TARGET)/$(@:.edj=)/Process\
+ -id ./images/$(TARGET)/$(@:.edj=)/Screen_Reader\
+ -sd ./sounds -fd ../objects $(SRC).edc \
+ $(SRC)-$(TARGET)-$@
+ rm -rf ./inc/tmp-inc.edc
+
+light: light.edj
+dark: dark.edj
clean:
rm -f *.edj
- rm -f ./inc/$(TMP_INC)
-
-distclean: clean
install:
mkdir -p $(THEME_DIR)
- $(INSTALL) $(TARGET) $(THEME_DIR)
+ $(INSTALL) tizen*.edj $(THEME_DIR)
mkdir -p $(EDC_DIR)
- cp -r $(SRC) widgets $(EDC_DIR)
+ cp -r $(SRC).edc widgets $(EDC_DIR)
uninstall:
- rm -f $(THEME_DIR)/$(TARGET)
- rm -f $(EDC_DIR)/$(SRC) && rm -rf $(EDC_DIR)/widgets
+ rm -f $(EDC_DIR)/$(SRC.edc) && rm -rf $(EDC_DIR)/widgets
+
+distclean: clean
+ ~