File: rules

package info (click to toggle)
konversation 0.16-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,112 kB
  • ctags: 4,786
  • sloc: cpp: 38,088; sh: 11,872; perl: 3,184; makefile: 262
file content (39 lines) | stat: -rwxr-xr-x 1,113 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
35
36
37
38
39
#!/usr/bin/make -f

ifeq (experimental,$(shell dpkg-parsechangelog|grep ^Dist|cut -d ' ' -f 2))
DEB_BUILD_OPTIONS += nofinal nostrip
endif

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/kde.mk

XP = xsltproc --nonet --output debian/
DB2MAN = /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl

%.1 : %.1.docbook
	$(XP) $(DB2MAN) $<

clean::
	-rm -f debian/konversation.1
	-rm -f debian/konversation.substvars
	-find . -type d -a -name CVS -print0 | xargs -0 rm -rf

pre-build::
	echo DEB_BUILD_OPTIONS = $(DEB_BUILD_OPTIONS)
ifeq (,$(TEST))
	# To circumvent: fakeroot debian/rules TEST=1 binary
	[ ! -d debian/.svn ]
	[ ! -d ./CVS ]
endif

build/konversation:: debian/konversation.1 \
	debian/konversationircprotocolhandler.1

install/konversation::
	install -D -m 644 konversation/scripts/README \
	  debian/konversation/usr/share/doc/konversation/README.scripts

$(patsubst %,binary-post-install/%,$(DEB_PACKAGES))::
        # remove empty files
	rm -f debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/{README,NEWS}