File: rules

package info (click to toggle)
gnunet 0.19.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 46,200 kB
  • sloc: ansic: 371,751; makefile: 9,210; sh: 9,197; javascript: 9,162; lisp: 448; sql: 311; xml: 291; python: 167; php: 117; awk: 102; perl: 57; ruby: 31; sed: 16
file content (33 lines) | stat: -rwxr-xr-x 991 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

SHELL := sh -e

%:
	dh ${@}

execute_after_dh_auto_clean:
	rm -rf contrib/gnunet_janitor.py
	rm -rf contrib/gnunet_pyexpect.py
	rm -rf libltdl
	rm -rf src/integration-tests/*.py

override_dh_auto_configure:
	dh_auto_configure -- --disable-rpath --with-microhttpd=yes $(shell dpkg-buildflags --export=configure) IFCONFIG_BINARY=/sbin/ifconfig

override_dh_auto_test:
	# Disabling test suite, incomplete

execute_after_dh_auto_install:
	# Removing useless files
	find debian/tmp/usr/lib -name "*.la" -exec rm -f {} +
	rm -f debian/tmp/usr/share/gnunet/LICENSE
	rm -f debian/tmp/usr/share/doc/gnunet/COPYING
	rm -f debian/tmp/usr/bin/gnunet-service-template
	rm -f debian/tmp/usr/bin/gnunet-template
	rm -f debian/tmp/usr/bin/gnunet-helper-transport-wlan-dummy

execute_after_dh_install-arch:
	# Removing files already present in libgnunet from gnunet package
	cd debian/libgnunet0.19 && find . -type f,l -exec rm -f ../gnunet/{} \;