forked from afedchin/xbmc-addon-iptvsimple
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
74 lines (63 loc) · 2.96 KB
/
Makefile.am
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
62
63
64
65
66
67
68
69
70
71
72
73
74
DATE = $(shell date +%Y%m%d)
SUBDIRS = \
addons \
src
DIST_SUBDIRS = \
$(SUBDIRS)
install: all
mkdir -m 755 -p $(DESTDIR)@LIBDIR@/pvr.iptvsimple
mkdir -m 755 -p $(DESTDIR)@DATADIR@/pvr.iptvsimple
cp -r addons/pvr.iptvsimple .
$(STRIP) -x pvr.iptvsimple/$(ADDONNAME)
cp -f pvr.iptvsimple/$(ADDONNAME) $(DESTDIR)@LIBDIR@/pvr.iptvsimple ; chmod 655 $(DESTDIR)@LIBDIR@/pvr.iptvsimple/$(ADDONNAME)
cp -r -f @abs_top_srcdir@/addons/pvr.iptvsimple/* $(DESTDIR)@DATADIR@/pvr.iptvsimple ; chmod -R o+rx $(DESTDIR)@DATADIR@/pvr.iptvsimple
rm -Rf pvr.iptvsimple
uninstall:
rm -Rf $(DESTDIR)@LIBDIR@/pvr.iptvsimple
rm -Rf $(DESTDIR)@DATADIR@/pvr.iptvsimple
dist-zip: all
cp -r addons/pvr.iptvsimple .
$(STRIP) -x pvr.iptvsimple/$(ADDONNAME)
zip -9 -r ./pvr.iptvsimple.$(VERSION).zip pvr.iptvsimple --exclude \*.am \*.in \*Makefile \*.gitignore
rm -Rf pvr.iptvsimple
dist-zip-daily: all
cp -r addons/pvr.iptvsimple .
cat pvr.iptvsimple/addon.xml | sed "s/$(VERSION)/$(VERSION).$(DATE)/g" > pvr.iptvsimple/addon.xml.new
mv pvr.iptvsimple/addon.xml.new pvr.iptvsimple/addon.xml
if !APPLE
$(STRIP) -s -x pvr.iptvsimple/$(ADDONNAME)
endif
if MINGW32
zip -9 -r ./pvr.iptvsimple.$(VERSION).$(DATE).zip pvr.iptvsimple --exclude \*.am \*.in \*Makefile \*.gitignore
else
zip -9 -r ./pvr.iptvsimple.$(VERSION).$(DATE).zip pvr.iptvsimple --exclude \*.am \*.in \*Makefile \*.gitignore \*.dll
endif
rm -Rf pvr.iptvsimple
dist-git: all
GIT_REV=`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h %ci" HEAD | cut -f1 -d' '` ; \
make VERSION=$$GIT_REV dist
repo: all dist-zip
make -C data all
rm -Rf addon-repository
mkdir -p addon-repository/pvr.iptvsimple
cp pvr.iptvsimple.$(VERSION).zip addon-repository/pvr.iptvsimple
cp addons/pvr.iptvsimple/icon.png addon-repository/pvr.iptvsimple
cp data/addons.xml addon-repository
cp data/addons.xml.md5 addon-repository
repo-daily: all dist-zip-daily
make -C data all
rm -Rf addon-repository
mkdir -p addon-repository/pvr.iptvsimple
cp pvr.iptvsimple.$(VERSION).$(DATE).zip addon-repository/pvr.iptvsimple
cp addons/pvr.iptvsimple/icon.png addon-repository/pvr.iptvsimple
cat data/addons.xml | sed "s/$(VERSION)/$(VERSION).$(DATE)/g" > addon-repository/addons.xml
cd addon-repository && md5sum addons.xml > addons.xml.md5
release-repo-daily: repo-daily
cp -r addon-repository/* ~/Dropbox/Public/xbmc-addon-xvdr
repo-zip: all
cd addons && \
zip -9 -r ../repository.iptvsimple.linux32.zip repository.iptvsimple.linux32 --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.iptvsimple.linux64.zip repository.iptvsimple.linux64 --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.iptvsimple.rpi.zip repository.iptvsimple.rpi --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.iptvsimple.osx.zip repository.iptvsimple.osx --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.iptvsimple.win32.zip repository.iptvsimple.win32 --exclude \*.am \*.in \*Makefile \*.gitignore