File: rules

package info (click to toggle)
ddd 1%3A3.3.12-5.4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 31,960 kB
  • sloc: cpp: 105,820; sh: 9,262; ansic: 3,556; makefile: 1,895; sed: 69; awk: 25
file content (34 lines) | stat: -rwxr-xr-x 1,110 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
#!/usr/bin/make -f

DEB_CFLAGS_MAINT_APPEND = -DNDEBUG
DEB_CXXFLAGS_MAINT_APPEND = -DNDEBUG
DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --builddirectory=builddir

override_dh_auto_configure:
	RSH=rsh LPR=lpr XTERM=xterm XFONTSEL=xfontsel \
        GCORE=gcore ice_cv_find_xp=no ac_cv_lib_Xp_XpSelectInput=no \
	dh_auto_configure -- --with-readline-libraries \
	    --disable-builtin-app-defaults --disable-builtin-manual \
	    --disable-builtin-news --disable-builtin-license \
	    --with-userinfo="$(shell dpkg-parsechangelog -SMaintainer)"

override_dh_auto_test:
	# Disable the make check command, which wants to run ddd interactively

override_dh_auto_install:
	dh_auto_install
	rm -f debian/tmp/usr/share/ddd/COPYING

override_dh_auto_clean:
	dh_auto_clean
	rm -f ddd/ddd.info.txt ddd/ddd.info.txt.gz
	rm -f ddd/ddd.info.txt.gz.C

execute_after_dh_install-arch:
	# The manpage installed contains a reference to a logo .eps file in the
	# build directory which isn't even created; remove this reference to
	# eliminate man warnings.
	sed -i -e '/^\.PSPIC/d' debian/ddd/usr/share/man/man1/ddd.1