Merge branch 'master' of github.com:otcshare/GhostCluster into upstream
[profile/ivi/GhostCluster.git] / Makefile
1 PROJECT = GhostCluster
2
3 INSTALL_DIR = ${DESTDIR}/usr/share/$(PROJECT)
4 DESKTOP_DIR = ${DESTDIR}/usr/share/applications
5 ICON_DIR    = ${DESTDIR}/usr/share/pixmaps
6 VERSION     = $(shell grep version manifest.json | cut -f4 -d"\"")
7 PACKAGE     = $(PROJECT)-$(VERSION)
8
9 FILES = index.html *.js *.css manifest.json *.png
10
11 PKG_NAME := $(PROJECT)
12 SPECFILE = $(addsuffix .spec, $(PKG_NAME))
13 YAMLFILE = $(addsuffix .yaml, $(PKG_NAME))
14
15 all:
16         @echo "Nothing to build"
17
18 widget:
19         zip -r $(PKG_NAME).wgt $(FILES) assets
20
21 install:
22         mkdir -p $(INSTALL_DIR)/
23         cp -a assets $(INSTALL_DIR)/
24         cp $(FILES) $(INSTALL_DIR)/
25         mkdir -p $(DESKTOP_DIR)/
26         cp $(PROJECT).desktop $(DESKTOP_DIR)/
27         mkdir -p $(ICON_DIR)/
28         cp $(PROJECT).png $(ICON_DIR)/$(PROJECT).png
29
30 spec: 
31         specify $<
32
33 dist:
34         rm -rf $(PACKAGE)
35         mkdir $(PACKAGE)
36         git clone . $(PACKAGE)
37         tar czf $(PACKAGE).tar.gz $(PACKAGE)
38