File: rules

package info (click to toggle)
libphysfs 2.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,512 kB
  • ctags: 9,633
  • sloc: cpp: 30,946; ansic: 27,501; cs: 4,374; java: 3,077; makefile: 740; ruby: 461; perl: 59; sh: 8
file content (30 lines) | stat: -rwxr-xr-x 655 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_MULTIARCH     ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

EXTRAFLAGS := -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)"

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRAFLAGS)

override_dh_auto_build:
	dh_auto_build
	doxygen

override_dh_clean:
	dh_clean
	rm -rf $(CURDIR)/docs/

override_dh_install:
	dh_install
	strip --remove-section=.comment \
		$(CURDIR)/debian/libphysfs-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libphysfs.a
	rm -f $(CURDIR)/debian/libphysfs-dev/usr/share/doc/libphysfs1/html/jquery.j

override_dh_strip:
	dh_strip --dbg-package=libphysfs1-dbg