-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
31 lines (20 loc) · 633 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
ASSETS_DIR=assets
SOURCE_DIR=themes
SRC_EXT=edc
OBJ_EXT=edj
BASE=$(ASSETS_DIR)/base.$(SRC_EXT)
OBJS=$(patsubst %.$(SRC_EXT), %.$(OBJ_EXT), $(wildcard $(SOURCE_DIR)/*.$(SRC_EXT)))
EDJE_CC=edje_cc
EDJE_CC_IMG_FLAGS=-id $(ASSETS_DIR)
EDJE_CC_SND_FLAGS=-sd $(ASSETS_DIR)
EDJE_CC_FLAGS=$(EDJE_CC_IMG_FLAGS) $(EDJE_CC_SND_FLAGS)
PREFIX=/usr
.PHONY: all clean install
all: $(OBJS)
%.$(OBJ_EXT): %.$(SRC_EXT) $(BASE)
$(EDJE_CC) $(EDJE_CC_FLAGS) $< $@
clean:
rm $(SOURCE_DIR)/*.$(OBJ_EXT)
install: $(OBJS)
mkdir -p "$(DESTDIR)$(PREFIX)/share/terminology/themes"
install -Dm644 $^ "$(DESTDIR)$(PREFIX)/share/terminology/themes"