2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
4
3
# Uncomment this to turn on verbose mode.
7
# This is the debhelper compatability version to use.
11
#bindir = $(CURDIR)/debian/ksimus/usr/bin
13
INSTALL_DIR = install -p -d -o root -g root -m 755
14
INSTALL_FILE = install -p -o root -g root -m 644
16
6
ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
17
7
ifeq ($(ARCH),alpha)
18
8
export CFLAGS=-O0 -mieee
23
13
export CXXFLAGS=-ffunction-sections
26
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
27
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
29
# FOR AUTOCONF 2.52 AND NEWER ONLY
30
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
31
confflags += --build $(DEB_HOST_GNU_TYPE)
33
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
41
./configure $(confflags) --prefix=/usr --enable-gtk2 --enable-qt
59
mkdir -p $(CURDIR)/debian/tmp/usr/bin
61
$(MAKE) install prefix=`pwd`/debian/tmp/usr docdir=`pwd`/debian/tmp/usr/share/nvclock
63
dh_install --autodest --sourcedir=debian/tmp
66
# Build architecture-independent files here.
67
binary-indep: build install
68
# We have nothing to do by default.
70
# Build architecture-dependent files here.
71
binary-arch: build install
87
dh_installchangelogs ChangeLog
100
binary: binary-indep binary-arch
101
.PHONY: build clean binary-indep binary-arch binary install configure
19
override_dh_auto_configure:
21
dh_auto_configure -- --enable-gtk --enable-qt
24
dh_install --list-missing