RSSFinder/Makefile

23 lines
542 B
Makefile
Raw Normal View History

PROJECT = rssfinder
VERSION = 0.4.0
FILES = $(PROJECT)/main.qml
FILES += $(PROJECT)/finder.js
FILES += $(PROJECT)/metadata.desktop
FILES += $(PROJECT)/rss.svg
FILES += $(PROJECT)/clipboard.svg
FILES += $(PROJECT)/LICENSE
package: copy_license update_version
zip -X $(PROJECT)_v$(VERSION).zip $(FILES)
copy_license:
@cp "LICENSE" "$(PROJECT)/LICENSE"
update_version:
@sed -i "s/^X-Falkon-Version.*$$/X-Falkon-Version\=$(VERSION)/g" $(PROJECT)/metadata.desktop
clean:
rm -f "./$(PROJECT)/LICENSE"
rm -f "./$(PROJECT)_v$(VERSION).zip"