File: rules

package info (click to toggle)
libedit 3.1-20160903-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,456 kB
  • ctags: 1,773
  • sloc: ansic: 15,630; sh: 4,210; awk: 427; makefile: 137
file content (30 lines) | stat: -rwxr-xr-x 856 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
#!/usr/bin/make -f
# The previous build system was using pmake
# The current autoconf. That makes our life way easier

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --disable-silent-rules --enable-widec --enable-examples
	mv doc/editline.3.roff doc/editline.3edit.roff

override_dh_strip:
	dh_strip --dbg-package=libedit2-dbg

override_dh_installdeb:
	dh_installdeb
	# Workaround for bug #774972
	mv debian/libedit-dev/usr/share/man/man3/editline.3.gz debian/libedit-dev/usr/share/man/man3/editline.3edit.gz
	# Workaround for bug #851700
	cd debian/libedit-dev/usr/share/man/man3/; \
	MANPAGES=$$(ls -1 *.3); \
	for f in $$MANPAGES; do \
		rm -f $$f && ln -s editline.3edit.gz $$f.gz; \
	done

override_dh_clean:
	dh_clean
	if test -f doc/editline.3edit.roff; then \
		mv doc/editline.3edit.roff doc/editline.3.roff; \
	fi