File: rules

package info (click to toggle)
kawari8 8.2.8-9
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 1,380 kB
  • sloc: makefile: 24
file content (33 lines) | stat: -rwxr-xr-x 1,195 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
#!/usr/bin/make -f
# This file is public domain.

UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)-.*/\1/p')
ZIP_VERSION := $(shell echo $(UPSTREAM_VERSION) | sed -e 's/\.//g')
DEB_TAR_SRCDIR                  := kawari-$(ZIP_VERSION)/build/src
DEB_AUTO_CLEANUP_RCS            := yes

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

DEB_MAKE_MAKEFILE	:= gcc.mak
DEB_MAKE_CLEAN_TARGET	:=

build/kawari8::
	docbook-to-man debian/kosui.sgml > kosui.6
	docbook-to-man debian/kawari_encode.sgml > kawari_encode.6

binary-install/kawari8::
	mv debian/kawari8/usr/share/doc/kawari8/document \
		debian/kawari8/usr/share/doc/kawari8/html

cleanbuilddir/kawari8::
	$(RM) debian/stamp-patch-*.patch

get-orig-source::
	mkdir $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig
	cd $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig && wget -c \
		http://jaist.dl.sourceforge.net/sourceforge/kawari/kawari-$(ZIP_VERSION).zip
	tar -czvf kawari8_$(UPSTREAM_VERSION).orig.tar.gz kawari8-$(UPSTREAM_VERSION).orig
	rm -rf $(CURDIR)/kawari8-$(UPSTREAM_VERSION).orig