]> git.donarmstrong.com Git - dactyl.git/blob - debian/rules
3222756784752f1b723945ccecc9da3141130d19
[dactyl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 PACKAGES=pentadactyl # teledactyl melodactyl
4 VERSION=$(shell dpkg-parsechangelog | \
5         sed -n -e '/^Version:/ { s/^Version:\s*//; s/[^a-z0-9]/_/g; p }')
6
7 %:
8         dh $@ --with xul-ext
9
10 override_dh_auto_build:
11         make DIRS=$(PACKAGES) MANGLE=chrome XPI_FILES=bootstrap.js xpi
12
13 override_dh_auto_install:
14         for PACKAGE in $(PACKAGES); \
15                 do install-xpi -p xul-ext-$$PACKAGE downloads/$$PACKAGE-*.xpi; \
16                 done
17
18 override_dh_auto_clean:
19         make DIRS=$(PACKAGES) clean
20         for PACKAGE in $(PACKAGES); \
21                 do rm -f $$PACKAGE/chrome.zip; \
22                 done
23
24 override_dh_installchangelogs:
25         for PACKAGE in $(PACKAGES); \
26                 do dh_installchangelogs -p xul-ext-$$PACKAGE $$PACKAGE/NEWS; \
27                 done