2003-09-27 10:01:11 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# GNU copyright 1997 to 1999 by Joey Hess.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
2003-11-02 19:05:54 +00:00
|
|
|
export DH_VERBOSE=1
|
2003-09-27 10:01:11 +00:00
|
|
|
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -O0
|
|
|
|
else
|
|
|
|
CFLAGS += -O2
|
|
|
|
endif
|
|
|
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
|
|
|
INSTALL_PROGRAM += -s
|
|
|
|
endif
|
|
|
|
|
|
|
|
configure: configure-stamp
|
|
|
|
configure-stamp:
|
|
|
|
dh_testdir
|
2004-01-01 11:48:46 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --enable-perl --enable-gtk
|
2003-09-27 10:01:11 +00:00
|
|
|
touch configure-stamp
|
|
|
|
|
|
|
|
|
|
|
|
build: build-stamp
|
|
|
|
|
|
|
|
build-stamp: configure-stamp
|
|
|
|
dh_testdir
|
|
|
|
$(MAKE)
|
|
|
|
touch build-stamp
|
|
|
|
|
|
|
|
clean:
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp configure-stamp
|
|
|
|
-$(MAKE) clean
|
|
|
|
dh_clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
|
|
|
dh_installdirs
|
|
|
|
$(MAKE) install DESTDIR=$(CURDIR)/debian/weechat
|
2003-11-03 22:03:47 +00:00
|
|
|
dh_install --sourcedir=debian/weechat
|
2003-11-02 19:05:54 +00:00
|
|
|
install -o root -g root -m 755 src/gui/curses/weechat-curses $(CURDIR)/debian/weechat-curses/usr/bin
|
|
|
|
install -o root -g root -m 755 src/gui/gtk/weechat-gtk $(CURDIR)/debian/weechat-gtk/usr/bin
|
2003-09-27 10:01:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
2003-11-02 19:05:54 +00:00
|
|
|
dh_testdir -pweechat-common
|
|
|
|
dh_testroot -pweechat-common
|
|
|
|
dh_installchangelogs -pweechat-common
|
|
|
|
dh_installdocs -pweechat-common
|
|
|
|
dh_installexamples -pweechat-common
|
|
|
|
dh_installman weechat.1 -pweechat-common
|
|
|
|
dh_compress -pweechat-common
|
|
|
|
dh_fixperms -pweechat-common
|
|
|
|
dh_installdeb -pweechat-common
|
|
|
|
dh_shlibdeps -pweechat-common
|
|
|
|
dh_gencontrol -pweechat-common
|
|
|
|
dh_md5sums -pweechat-common
|
|
|
|
dh_builddeb -pweechat-common
|
2003-09-27 10:01:11 +00:00
|
|
|
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
2003-11-02 19:05:54 +00:00
|
|
|
dh_testdir -a
|
|
|
|
dh_testroot -a
|
|
|
|
dh_link -a
|
|
|
|
dh_strip -a
|
|
|
|
dh_compress -a
|
|
|
|
dh_fixperms -a
|
|
|
|
dh_installdeb -a
|
|
|
|
dh_shlibdeps -a
|
|
|
|
dh_gencontrol -a
|
|
|
|
dh_md5sums -a
|
|
|
|
dh_builddeb -a
|
2003-09-27 10:01:11 +00:00
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|