File: rules

package info (click to toggle)
cppman 0.5.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,464 kB
  • sloc: sql: 9,269; python: 1,249; sh: 53; makefile: 14
file content (27 lines) | stat: -rwxr-xr-x 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_configure:
	cat ${CURDIR}/debian/index.sql | sqlite3 ${CURDIR}/cppman/lib/index.db
	dh_auto_configure

override_dh_clean:
	dh_clean ${CURDIR}/cppman/lib/index.db

override_dh_fixperms:
	dh_fixperms
	# The executable bit is cleaned during build process, so we need set
	# them again.
	find debian/cppman -name *.sh -print0 | xargs --null chmod a+x

override_dh_auto_install:
	dh_auto_install
	# Fix extra-license-file and changelog
	-rm -f debian/cppman/usr/share/doc/cppman/COPYING
	-rm -f debian/cppman/usr/share/doc/cppman/ChangeLog