aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: f6acd72ea982889bfd9d3f3c1e93cafb082e2859 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile for detour-elm

CC = edje_cc
CAT = /bin/cat
CP = /bin/cp
HEAD = /usr/bin/head
RM = /bin/rm -f
TAIL = /usr/bin/tail
COMPILE = $(CC) $(EDJE_CC_FLAGS)
SRC = main.edc entry_text.edc
OUT = detour-elm.edj
PATH_INSTALL = $(HOME)/.elementary/themes

EDJE_CC_FLAGS = -id images \
-id icons \
-id custom \
-id clock

.SILENT :

all: version clean detour-elm.edj

clean:
	@echo
	@echo "Checking..."
	if [ -e $(OUT) ]; then $(RM) $(OUT); fi

detour-elm.edj: main.edc
	@echo "Running make..."
	$(COMPILE) $(SRC) -o $(OUT)

install: detour-elm.edj
	@echo "Running make install..."
	if [ -e $(OUT) ]; then $(CP) $(OUT) $(PATH_INSTALL)/; fi
	@echo
	@echo --------------------------------------------------
	@echo $(OUT) was installed in your
	@echo $(PATH_INSTALL)/ directory.
	@echo --------------------------------------------------
	@echo
	@echo

version:
	@echo
	$(CAT) $(SRC) | $(HEAD) -14 | $(TAIL) -1
	$(CAT) $(SRC) | $(HEAD) -15 | $(TAIL) -1

verbose: main.edc
	$(COMPILE) -v $(SRC) -o $(OUT)

uninstall: detour-elm.edj
	@echo
	@echo "Removing" $(OUT)
	#$(RM) $(PATH_INSTALL)/$(OUT)
	@echo
	@echo --------------------------------------------------
	@echo $(OUT) was removed from your
	@echo $(PATH_INSTALL)/ directory.
	@echo --------------------------------------------------
	@echo