File: rules

package info (click to toggle)
imview 1.1.9h-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,528 kB
  • sloc: cpp: 32,590; sh: 2,664; ansic: 1,900; makefile: 811; exp: 112; python: 88
file content (34 lines) | stat: -rwxr-xr-x 1,002 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

%:
	dh $@ --without autoreconf

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND = -DUSE_X11
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

override_dh_auto_configure:
	dh_testdir
	-rm -f config.sub config.guess
	ln -s /usr/share/misc/config.sub config.sub
	ln -s /usr/share/misc/config.guess config.guess
	mv configure configure.original
	autoconf
	dh_auto_configure

override_dh_auto_clean:
	dh_auto_clean
	-mv configure.original configure
	-rm -f config.status imview.list imcfg.h null.h stamp-h
	-rm -f Makefile fluid/Makefile io/Makefile server/Makefile
	-rm -f makedepend fluid/makedepend io/makedepend server/makedepend
	-rm -f extensions/Fl_Native_File_Chooser.o extensions/Makefile
	-rm -f extensions/imview_ext.a extensions/makedepend

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_fixperms:
	dh_fixperms
	find debian \( -name "*.lut" -o -name "*.html" \) -executable -exec chmod -x \{\} \;