File: rules

package info (click to toggle)
dbskkd-cdb 1%3A3.00-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 136 kB
  • sloc: ansic: 108; makefile: 72; sh: 41
file content (71 lines) | stat: -rwxr-xr-x 1,699 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/make -f
# This file is public domain software, originally written by Joey Hess.

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=$(DEB_BUILD_MAINT_OPTIONS) dpkg-buildflags
CFLAGS=-Wall $(shell $(dpkg_buildflags) --get CFLAGS)
CPPFLAGS=$(shell $(dpkg_buildflags) --get CPPFLAGS)
LDFLAGS=$(shell $(dpkg_buildflags) --get LDFLAGS)

build: build-arch build-indep

build-arch: build-arch-stamp
build-arch-stamp:
	dh_testdir
	$(MAKE) CC='gcc $(CFLAGS) $(CPPFLAGS)' \
                COMPAT='-DJISYO_FILE=\"/usr/share/skk/SKK-JISYO.cdb\"' \
		CDBLIB='$(LDFLAGS) -lcdb'
	touch $@

build-indep: build-indep-stamp
build-indep-stamp:
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build*-stamp
	$(MAKE) clean
	dh_clean

install: install-arch install-indep

install-indep: DH_OPTIONS=-i
install-indep:

install-arch: DH_OPTIONS=-a
install-arch:
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	dh_install dbskkd-cdb usr/sbin
	dh_install debian/makeskkcdbdic usr/bin
	dh_install *.sh usr/share/dbskkd-cdb

binary-indep: DH_OPTIONS=-i
binary-indep: build-indep install-indep

binary-arch: DH_OPTIONS=-a
binary-arch: build-arch install-arch
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGES*
	dh_installdocs README* CONTRIB* skk-server-protocol* examples*
	dh_installman debian/dbskkd-cdb.8
	dh_installman debian/makeskkcdbdic.1
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch build-indep build-arch