File: rules

package info (click to toggle)
coz-profiler 0.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 22,528 kB
  • sloc: ansic: 188,045; javascript: 20,133; cpp: 6,852; makefile: 214; python: 118; sh: 88
file content (54 lines) | stat: -rwxr-xr-x 1,703 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/make -f

DESTDIR = debian/coz-profiler

get-orig-source:
	debian/get-orig-source

export DH_VERBOSE=1

%:
	dh $@

# Generate manual page from RST document
debian/coz.1: debian/coz.rst
	rst2man $< > $@
override_dh_installman: debian/coz.1
	dh_installman
override_dh_install:
	dh_install

	# Use jquery, d3 and d3-tip from Debian instead of embedded copy
	$(RM) $(DESTDIR)/usr/share/coz-profiler/viewer/lib/jquery.min.js
	ln -s /usr/share/javascript/jquery/jquery.min.js \
	   $(DESTDIR)/usr/share/coz-profiler/viewer/lib/jquery.min.js

	$(RM) $(DESTDIR)/usr/share/coz-profiler/viewer/lib/d3/d3.min.js
	ln -s /usr/share/javascript/d3/d3.min.js \
	   $(DESTDIR)/usr/share/coz-profiler/viewer/lib/d3/d3.min.js

	$(RM) $(DESTDIR)/usr/share/coz-profiler/viewer/lib/d3/d3-tip.min.js
	ln -s /usr/share/javascript/d3-tip/d3-tip.min.js \
	   $(DESTDIR)/usr/share/coz-profiler/viewer/lib/d3/d3-tip.min.js

	# Use fonts-font-awesome from Debian instead of embedded copy
	$(RM) -r $(DESTDIR)/usr/share/coz-profiler/viewer/lib/font-awesome
	ln -s /usr/share/fonts-font-awesome \
	   $(DESTDIR)/usr/share/coz-profiler/viewer/lib/font-awesome

	# Remove redundant license file
	$(RM) $(DESTDIR)/usr/share/coz-profiler/viewer/lib/science/LICENSE.txt

override_dh_auto_test:
	@if [ "$$(cat /proc/sys/kernel/perf_event_paranoid)" -le 2 ] ; then \
	  $(MAKE) check; \
	else \
	  echo ; \
	  echo "***********************************************************"; \
	  echo "error: not running test suite, /proc/sys/kernel/perf_event_paranoid value too high"; \
	  echo "***********************************************************"; \
	  echo ; \
	fi

override_dh_auto_build:
	dh_auto_build -- CC=cc CXX=c++ GIT=true