summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2011-08-12 12:39:41 +0000
committerBoris Faure <billiob@gmail.com>2011-08-12 12:39:41 +0000
commit4c2faa812374ef5cb2aefa96e887d4a01ae8fc81 (patch)
tree6a2418b62e630a4ad2f9cad9b6687fcfeaeebaa8
parent0ca69c8c48e4f498880ab05414d73312d43aa34c (diff)
klok: add proper makefile
SVN revision: 62383
-rw-r--r--Makefile39
-rwxr-xr-xbuild.sh2
2 files changed, 39 insertions, 2 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..19a3622
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,39 @@
1EDJE_CC := edje_cc
2INSTALL := install
3PKG_CONFIG := pkg-config
4
5SRCDIR := .
6BUILDDIR := .
7E_DESTDIR := $(shell $(PKG_CONFIG) --variable=prefix enlightenment)/share/enlightenment/data/backgrounds
8E_HOMEDIR := ~/.e/e/backgrounds
9
10COMMON_EDCS := $(wildcard $(SRCDIR)/*.edc)
11E_EDCS := $(wildcard $(SRCDIR)/e/*.edc)
12
13IMAGES := $(wildcard $(SRCDIR)/images/*.png $(SRCDIR)/images/*.jpg)
14
15.PHONY: all clean install install-system install-home
16
17all: klok.edj
18
19clean:
20 rm -f klok.edj
21
22
23klok.edj: $(COMMON_EDCS)
24 $(EDJE_CC) -v -id . -fd . \
25 $(SRCDIR)/klok.edc \
26 -o $(BUILDDIR)/klok.edj
27
28install:
29 @echo "Choose install-system or install-home"
30
31install-system: $(BUILDDIR)/klok.edj
32 $(INSTALL) -D -C -m 0644 -o root -g root \
33 $(BUILDDIR)/klok.edj \
34 $(E_DESTDIR)/klok.edj
35
36install-home: $(BUILDDIR)/klok.edj
37 $(INSTALL) -D -C -m 0644 \
38 $(BUILDDIR)/klok.edj \
39 $(E_HOMEDIR)/klok.edj
diff --git a/build.sh b/build.sh
deleted file mode 100755
index f092915..0000000
--- a/build.sh
+++ /dev/null
@@ -1,2 +0,0 @@
1#!/bin/sh
2edje_cc $@ -id . -fd . klok.edc -o klok.edj