File: rules

package info (click to toggle)
gnome-session 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,716 kB
  • sloc: ansic: 7,392; xml: 591; python: 125; makefile: 48; sh: 42
file content (24 lines) | stat: -rwxr-xr-x 626 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-Dman=true

execute_after_dh_auto_install:
	set -e; \
	vendor=$$(echo $(DEB_VENDOR) | tr A-Z a-z); \
	if ! [ -f debian/mimeapps/$$vendor.conf ]; then \
		vendor=debian; \
	fi; \
	$(MAKE) -C debian/mimeapps $$vendor.list; \
	cp -a debian/mimeapps/$$vendor.list debian/gnome-mimeapps.list
	install -m644 debian/gnome-mimeapps.list debian/tmp/usr/share/applications/gnome-mimeapps.list

override_dh_gnome_clean:
	dh_gnome_clean --no-control