File: rules

package info (click to toggle)
grace 1:5.1.25-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 14,192 kB
  • sloc: ansic: 102,044; sh: 5,492; makefile: 572; perl: 56; fortran: 56
file content (47 lines) | stat: -rwxr-xr-x 1,338 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS  = hardening=+bindnow

%:
	dh $@

override_dh_auto_configure:
	./configure \
	--enable-grace-home=/usr/share/grace \
	--with-editor="xterm -e sensible-editor" \
	--with-helpviewer="sensible-browser %s" \
	--with-f77=gfortran \
	--with-bundled-t1lib \
	--disable-pdfdrv \
	--without-bundled-xbae

# "make check" is more of a series of demos, requires X
override_dh_auto_test:

override_dh_auto_install:
	dh_auto_install --destdir debian/tmp

override_dh_install:
	# install the icons
	themedir=$(CURDIR)/debian/grace/usr/share/icons/hicolor;\
	for x in 16 22 24 32; do \
		install -D -m 644 -o root -g root debian/icons/grace$${x}.png \
			$${themedir}/$${x}x$${x}/apps/grace.png; \
	done
	install -m 755 -o root -g root debian/update-grace-fonts \
		$(CURDIR)/debian/grace/usr/sbin/update-grace-fonts
	dh_install

# Optional component that will not fail if gconf is missing, so a hard
# Depends: is not desirable.
override_dh_gconf:

# Upstream Makefile needs configure run even for clean target.  Override it,
# and ignore errors if they occur -- they come from the configure-check, not
# from the missing Makefile that is the common case.
override_dh_auto_clean:
	$(MAKE) --keep-going --ignore distclean

# Don't compress example graph files.
override_dh_compress:
	dh_compress -X.agr