File: rules

package info (click to toggle)
skksearch 0.0-24
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 228 kB
  • sloc: ansic: 1,079; makefile: 26; sh: 18
file content (22 lines) | stat: -rwxr-xr-x 874 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

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

DEB_INSTALL_DOCS_ALL :=
DEB_INSTALL_MANPAGES_skksearch := debian/skksearch.8

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)

DEB_MAKE_BUILD_TARGET := CFLAGS='$(CFLAGS) $(CPPFLAGS) -DSYSLOG' LDFLAGS='$(LDFLAGS) -lcdb -ldb'
DEB_MAKE_INSTALL_TARGET :=
DEB_MAKE_CHECK_TARGET :=

install/skksearch::
	install -D -m 644 README $(DEB_DESTDIR)/usr/share/doc/skksearch/README.ja
	f=$(DEB_DESTDIR)/usr/share/doc/skksearch/README.ja && \
		iconv -f iso-2022-jp -t utf-8 "$$f" > "$$f".tmp && mv -f "$$f".tmp "$$f" || rm -f "$$f".tmp