File: rules

package info (click to toggle)
xchat 2.8.8-17
  • links: PTS
  • area: main
  • in suites: buster
  • size: 13,124 kB
  • sloc: ansic: 69,094; sh: 11,214; perl: 2,751; makefile: 702; asm: 398; yacc: 291; xml: 138; python: 22
file content (32 lines) | stat: -rwxr-xr-x 845 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
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

%:
	dh $@

override_dh_autoreconf:
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
	patch -p1 < debian/patches/02_ubuntu_default_server.patch ; \
	touch debian/applied
endif
	dh_autoreconf ./autogen.sh
	[ -f xchat.xpm ] || convert -resize 32x32 xchat.png xchat.xpm

override_dh_auto_configure:
	dh_auto_configure -- --enable-ipv6 --enable-spell=gtkspell

override_dh_auto_clean:
	dh_auto_clean
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
	@if [ -e ./debian/applied ]; then \
		patch -R -p1 < debian/patches/02_ubuntu_default_server.patch ; \
		rm ./debian/applied ; \
	fi
endif
	rm -f po/*.gmo
	rm -f depcomp missing compile ltmain.sh
	rm -f po/stamp-po
	rm -f src/common/dbus/org.xchat.service.service
	rm -f xchat.xpm

override_dh_compress:
	dh_compress -X.pl -pxchat-common -pxchat