File: rules

package info (click to toggle)
doodle 0.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,380 kB
  • sloc: ansic: 7,704; sh: 5,092; java: 152; makefile: 146; sed: 16
file content (29 lines) | stat: -rwxr-xr-x 780 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
#!/usr/bin/make -f

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

%:
	dh ${@}

execute_after_dh_auto_clean:
	# remove generated files
	rm -f doodle-uninstalled.pc doodle-uninstalled.sh doodle.pc doodle.pc.in
	for file in $$(find . -type f -name "*.in"); \
	do \
		rm -f "$$(dirname "$${file}")"/"$$(basename "$${file}" .in)"; \
	done

execute_after_dh_auto_install:
	# Removing unused files
	rm -f debian/tmp/usr/lib/*/*.la
	rm -f debian/tmp/usr/share/man/man1/doodled.1

override_dh_auto_test:
	# disabled, doesn't work yet

execute_after_dh_install:
	sed -i -e "s|-D_FORTIFY_SOURCE=2||" debian/libdoodle-dev/usr/lib/*/pkgconfig/doodle.pc

override_dh_installinit:
	dh_installinit --update-rcd-params='defaults 22'