File: rules

package info (click to toggle)
klog 2.3-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 11,140 kB
  • sloc: cpp: 55,593; makefile: 26
file content (46 lines) | stat: -rwxr-xr-x 1,005 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
#! /usr/bin/make -f
#export CXXFLAGS=-std=c++11
export QT_SELECT=5
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/qmake.mk

DEB_CONFIGURE_EXTRA_FLAGS = --disable-debug
DEB_INSTALL_MANPAGES_klog = klog.1

clean::
	rm -f translations/*.qm
	rm -Rf build
	rm -f .qmake.stash


build-indep:

	/usr/bin/lrelease translations/*.ts

build-arch:
	#dh_strip

install/klog::
	# Install pixmaps.
#	dh_install debian/klog.xpm usr/share/pixmaps
	dh_install build/target/klog usr/bin
	dh_install -X *.ts translations usr/share/klog/
	
	# Generate HTML docs.
	for i in `find $(DEB_DESTDIR) -name index.docbook`; do \
	  cd `dirname $$i`; \
	  meinproc `basename $$i`; \
	done
	dh_fixperms

.PHONY: override_dh_strip
override_dh_strip:
	dh_strip --dbg-package=giblib1-dbg

override_dh_auto_install:
	dh_auto_install --destdir=debian/giblib1