example spec file
[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 PKG_NAME := $(PROJECT)
10 SPECFILE = $(addsuffix .spec, $(PKG_NAME))
11 YAMLFILE = $(addsuffix .yaml, $(PKG_NAME))
12
13 all:
14         @echo "Nothing to build"
15
16 install:
17         mkdir -p $(INSTALL_DIR)/
18         cp -a assets $(INSTALL_DIR)/
19         cp index.html *.js style.css manifest.json $(PROJECT).png $(INSTALL_DIR)/
20         mkdir -p $(DESKTOP_DIR)/
21         cp $(PROJECT).desktop $(DESKTOP_DIR)/
22         mkdir -p $(ICON_DIR)/
23         cp $(PROJECT).png $(ICON_DIR)/$(PROJECT).png
24
25 spec: 
26         specify $<
27
28 dist:
29         rm -rf $(PACKAGE)
30         mkdir $(PACKAGE)
31         git clone . $(PACKAGE)
32         tar czf $(PACKAGE).tar.gz $(PACKAGE)
33