File: rules

package info (click to toggle)
fhist 1.18-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,640 kB
  • sloc: ansic: 15,161; sh: 4,749; makefile: 1,028; awk: 154; yacc: 102
file content (23 lines) | stat: -rwxr-xr-x 688 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
#!/usr/bin/make -f

DEB_CONFIGURE_SCRIPT_ENV += CFLAGS="-fgnu89-inline -g"

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

DEB_MAKE_CHECK_TARGET := sure

DEB_MAKE_INSTALL_TARGET := \
	install RPM_BUILD_ROOT=$(DEB_DESTDIR) NLSDIR=$(DEB_DESTDIR)usr/share/locale

DEB_CONFIGURE_EXTRA_FLAGS := \
	--datadir=\$${prefix}/share/fhist --libdir=\$${prefix}/share/fhist

install/fhist::
	mv \
		$(DEB_DESTDIR)/usr/share/fhist/en/*.ps  \
		$(DEB_DESTDIR)/usr/share/fhist/en/*.txt \
		$(DEB_DESTDIR)/usr/share/doc/fhist
	rm -f $(DEB_DESTDIR)usr/share/man/man1/fhist_lic.1*
	rm -rf $(DEB_DESTDIR)usr/share/fhist