File: rules

package info (click to toggle)
ncview 2.1.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,768 kB
  • ctags: 2,135
  • sloc: ansic: 60,884; sh: 808; sed: 361; makefile: 52
file content (33 lines) | stat: -rwxr-xr-x 759 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
#!/usr/bin/make -f

# DH_VERBOSE := 1

# Enable hardening build flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export ACLOCAL=debian/aclocal

%:
	dh $@ \
	  --with autoreconf \
	  --parallel

override_dh_clean:
	dh_clean ncview.1

override_dh_auto_install:
	dh_auto_install

	# Install X11 app-defaults	
	install -m 644 Ncview-appdefaults $(CURDIR)/debian/ncview/etc/X11/app-defaults/Ncview

	# Install colormap files
	install -m 755 -d $(CURDIR)/debian/ncview/usr/share/ncview/
	install -m 644 *.ncmap $(CURDIR)/debian/ncview/usr/share/ncview/

	# removing embedded rpath in binaries
	-find $(CURDIR)/debian/*/usr/bin -type f -exec chrpath --delete {} \;

	# Create man page
	sed 's/NCVIEW_LIB_DIR/\/usr\/share\/ncview/g' data/ncview.1.sed > ncview.1