File: rules

package info (click to toggle)
https-everywhere 3.5.1-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 15,888 kB
  • sloc: xml: 29,560; python: 1,825; sh: 310; makefile: 36
file content (37 lines) | stat: -rwxr-xr-x 1,108 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/make -f

UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -n -e 's/^Version: \([^-]*\)-.*$$/\1/p')

%:
	dh $@ --with xul-ext --parallel

override_dh_auto_build:
	# Verify that we have the upstream Git commit id
	if [ "$$(sed -e 's/:.*//' debian/upstream-git-commit-id)" != '$(UPSTREAM_VERSION)' ]; then \
		echo "Git commit id has not been updated." >&2; \
		exit 1; \
	fi
	./makexpi.sh $(UPSTREAM_VERSION) --no-recurse

override_dh_auto_install:
	install-xpi pkg/https-everywhere-$(UPSTREAM_VERSION).xpi

override_dh_auto_test:
	@echo "No further tests are provided than what is during makexpi.sh."

override_dh_auto_clean:
	make clean
	# record upstream Git number if possible
	if type git > /dev/null && [ -d .git ]; then \
		echo -n $(UPSTREAM_VERSION): > debian/upstream-git-commit-id; \
		git rev-parse $(UPSTREAM_VERSION) >> debian/upstream-git-commit-id; \
	fi

override_dh_builddeb:
	dh_builddeb -- -z2 -Zxz

override_dh_install:
	rm -f debian/xul-ext-https-everywhere/usr/share/xul-ext/https-everywhere/LICENSE.txt

override_dh_installchangelogs:
	dh_installchangelogs src/Changelog