File: rules

package info (click to toggle)
ccache 4.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,420 kB
  • sloc: cpp: 50,251; asm: 28,570; sh: 9,632; ansic: 5,357; python: 834; perl: 68; makefile: 24
file content (33 lines) | stat: -rwxr-xr-x 956 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

export ASMFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(RM) debian/ccache.triggers

override_dh_auto_configure:
	dh_auto_configure -- \
	  -D DEPS=LOCAL \
	  -D DEP_CPPHTTPLIB=BUNDLED

override_dh_install:
	dh_install
	sed s/%DEB_HOST_MULTIARCH%/$(DEB_HOST_MULTIARCH)/ debian/update-ccache-symlinks.in >debian/ccache/usr/sbin/update-ccache-symlinks

override_dh_installdocs:
	dh_installdocs
	cd debian/ccache/usr/share/doc/ccache && mv MANUAL.html manual.html
	cd debian/ccache/usr/share/doc/ccache && mv MANUAL.md manual.md
	cd debian/ccache/usr/share/doc/ccache && mv NEWS.html changelog.html

override_dh_installchangelogs:
	dh_installchangelogs debian/ccache/usr/share/doc/ccache/NEWS.md

override_dh_installdeb:
	sed s/%DEB_HOST_MULTIARCH%/$(DEB_HOST_MULTIARCH)/ debian/ccache.triggers.in >debian/ccache.triggers
	dh_installdeb