File: rules

package info (click to toggle)
weechat 0.2.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,144 kB
  • ctags: 3,935
  • sloc: ansic: 53,409; xml: 25,371; sh: 9,825; makefile: 814; yacc: 289; sed: 16
file content (37 lines) | stat: -rwxr-xr-x 1,175 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
#!/usr/bin/make -f
# Sample debian/rules that uses cdbs.  Originaly written by Robert Millan.
# This file is public domain.

DEB_AUTO_CLEANUP_RCS            := yes

# Add here any variable or target overrides you need

DEB_CONFIGURE_USER_FLAGS := --with-debug=0
DEB_STRIP_EXCLUDE := libperl.a
DEB_DH_INSTALL_SOURCEDIR := $(CURDIR)/debian/tmp
DEB_INSTALL_DOCS_weechat-common :=  FAQ FAQ.fr
DEB_DH_MAKESHLIBS_ARGS_weechat-plugins := -n

DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0
else
        CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s
endif

ifeq ($(DEB_HOST_ARCH_OS),hurd)
 DEB_CONFIGURE_SCRIPT_ENV += LDFLAGS="-lpthread"
endif

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

install/weechat-common::
	install -D -o root -g root -m 644 debian/weechat.xpm $(CURDIR)/debian/weechat-common/usr/share/pixmaps/weechat.xpm

install/weechat-curses::
	install -D -o root -g root -m 644 debian/lintian-override $(CURDIR)/debian/weechat-curses/usr/share/lintian/overrides/weechat-curses