aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: cc7d30d4276885120da70ba76522e35360011096 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
VERNO=$(shell js -e 'print(JSON.parse(read("package.json")).version);')
WEBDIR=/home/matej/Dokumenty/website/fedorahosted/
UPSTREAM_XPI_URL=https://fedorahosted.org/released/bugzilla-triage-scripts/bugzilla-triage-$(VERNO).xpi
UPDATE_URL=https://fedorahosted.org/released/bugzilla-triage-scripts/update.rdf

all: install

install: local-install
	#make -C $(WEBDIR)
	#websync

local-install: bugzilla-triage.xpi update.rdf
	rsync -av bugzilla-triage.xpi $(WEBDIR)
	rsync -av jsons/Config_data.json $(WEBDIR)

bugzilla-triage.xpi: package.json lib/*.js
	cfx xpi --update-link=$(UPSTREAM_XPI_URL) --update-url=$(UPDATE_URL)
	tidy -i -xml -utf8 -m bugzilla-triage.update.rdf

update.rdf: bugzilla-triage.xpi
	tidy -i -xml -utf8 -m update.rdf

clean:
	find . -name \*~ -print -delete