WEBDIR=/home/matej/Dokumenty/website/fedorahosted/
all: install
install: local-install
websync
local-install: bugzilla-triage.xpi
rsync -av bugzilla-triage.xpi $(WEBDIR)
rsync -av jsons/Config_data.json $(WEBDIR)
bugzilla-triage.xpi: package.json lib/*.js docs/*
cfx xpi ;\
unzip -qqo bugzilla-triage.xpi install.rdf ;\
sed -i -e \
'/em:creator/a\
https://fedorahosted.org/released/bugzilla-triage-scripts/icon.png\
https://fedorahosted.org/released/bugzilla-triage-scripts/update.rdf\
' \
install.rdf ;\
zip -9rmqT bugzilla-triage.xpi install.rdf ;\
make -C $(WEBDIR)
clean:
find . -name \*~ -print -delete