-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
32 lines (25 loc) · 822 Bytes
/
Makefile
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
define rollout
$(eval VERSION := "$(shell egrep '^(\s*|<addon.*)version' $(PLUGIN)/addon.xml | sed -e 's/.*version="\([0-9.]*\)\".*/\1/')")
@printf "== building archive for $(PLUGIN), version $(VERSION)\n"
@find $(PLUGIN) | zip -@ "repo/$(PLUGIN)/$(PLUGIN)-$(VERSION).zip"
@cp $(PLUGIN)/changelog.txt repo/$(PLUGIN)/changelog-$(VERSION).txt
@python addon_xml_generator.py
@printf "== done\n"
endef
clean:
@rm -f `find . -name '*pyc' -o -name '*pyo' -o -name '.DS_Store'`
@printf "== files cleaned\n"
globocom: clean
$(eval PLUGIN := plugin.video.globo.com)
$(rollout)
sbt-thenoite: clean
$(eval PLUGIN := plugin.video.sbt-thenoite)
$(rollout)
sbtvideos: clean
$(eval PLUGIN := plugin.video.sbtvideos)
$(rollout)
brplay: clean
$(eval PLUGIN := plugin.video.brplay)
$(rollout)
rollout:
$(PLUGIN)