Skip to content

Commit

Permalink
Added Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjomckay committed Apr 12, 2020
1 parent e8fb9cd commit a1c29c2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
addon_xml := addon.xml
include_files = addon.py addon.xml LICENSE README.md resources/
include_paths = $(patsubst %,$(name)/%,$(include_files))

name = $(shell xmllint --xpath 'string(/addon/@id)' $(addon_xml))
version = $(shell xmllint --xpath 'string(/addon/@version)' $(addon_xml))

zip:
@rm -f $(name)
@ln -s . $(name)
zip -r $(name)-$(version).zip $(include_paths)
@rm -f $(name)

0 comments on commit a1c29c2

Please sign in to comment.