File: rules

package info (click to toggle)
kst 2.0.8-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 30,712 kB
  • sloc: cpp: 97,085; ansic: 13,364; python: 2,970; sh: 761; yacc: 184; lex: 143; makefile: 140; perl: 30; xml: 30
file content (34 lines) | stat: -rwxr-xr-x 1,026 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
34
#!/usr/bin/make -f

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

export DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed"

%:
	dh $@ --buildsystem=cmake --parallel

override_dh_auto_configure:
	dh_auto_configure -Scmake -- -Dkst_install_prefix=/usr -Dkst_verbose=ON -Dkst_rpath=OFF -Dkst_svnversion=OFF -Dkst_qt5=ON

override_dh_auto_build:
	xsltproc -o docbook/kst/tutorial/ /usr/share/xml/docbook/stylesheet/docbook-xsl/html/chunk.xsl docbook/kst/tutorial/tutorial.docbook
	dh_auto_build -Scmake

override_dh_auto_clean:
	find docbook/kst/tutorial/ -name '*.html' -exec rm {} \;
	dh_auto_clean -Scmake

override_dh_auto_install:
	dh_auto_install --destdir=debian/kst
	# remove development symlinks
	find debian/kst -name '*.so' -type l -print -delete
	# remove development static libraries
	find debian/kst -name '*.a' -print -delete
	# remove kde3 menu file
	rm -rfv debian/kst/usr/share/applnk
	# remove kde3 mime type
	rm -rfv debian/kst/usr/share/mimelink

override_dh_compress:
	dh_compress -X'/examples/'