File: rules

package info (click to toggle)
enigmail 2%3A2.2.4-0.3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,596 kB
  • sloc: javascript: 4,165; sh: 3,440; python: 1,483; perl: 290; makefile: 282; xml: 13; ansic: 2
file content (23 lines) | stat: -rwxr-xr-x 804 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_install:
	mkdir -p debian/enigmail/usr/share/xul-ext/enigmail
	unzip build-tb/*.xpi -d debian/enigmail/usr/share/xul-ext/enigmail

override_dh_auto_configure:
	ln -sf /usr/share/misc/config.guess /usr/share/misc/config.sub ./
	dh_auto_configure -- --with-tb-path=/usr/bin/thunderbird --with-tb-args='--headless --profile $(shell pwd)/test-profile'

override_dh_auto_clean:
	# if config/autoconf.mk is not present, create stub of it, such that make distclean works
	if [ ! -f config/autoconf.mk ]; then \
		echo 'XPI_MODULE_VERS = $(DEB_VERSION_UPSTREAM)' > config/autoconf.mk; \
		echo 'DIST = $$(DEPTH)/build-tb/dist' >> config/autoconf.mk; \
		echo 'BUILD = $$(DEPTH)/build-tb' >> config/autoconf.mk; \
	fi

	dh_auto_clean