Adding debian version 0.3.2.1+svn20080509-4.
[debian/lxde-common.git] / debian / rules
CommitLineData
2467e331
DB
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# This file was originally written by Joey Hess and Craig Small.
5# As a special exception, when this file is copied by dh-make into a
6# dh-make output file, you may use that output file without restriction.
7# This special exception was added by Craig Small in version 0.37 of dh-make.
8
9# Uncomment this to turn on verbose mode.
10#export DH_VERBOSE=1
11
12include /usr/share/dpatch/dpatch.make
13
14# These are used for cross-compiling and for saving the configure script
15# from having to guess our platform (since we know it already)
16DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
18
44b3fe61
DB
19CFLAGS = -Wall -g
20INSTALL = install
21INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644
22INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
23INSTALL_SCRIPT = $(INSTALL) -p -o root -g root -m 755
24INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
25
26ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
27 CFLAGS += -O0
28else
29 CFLAGS += -O2
30endif
31ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
32 INSTALL_PROGRAM += -s
33endif
2467e331
DB
34
35config.status: configure patch-stamp
36 dh_testdir
37 # Add here commands to configure the package.
38ifneq "$(wildcard /usr/share/misc/config.sub)" ""
39 cp -f /usr/share/misc/config.sub config.sub
40endif
41ifneq "$(wildcard /usr/share/misc/config.guess)" ""
42 cp -f /usr/share/misc/config.guess config.guess
43endif
44b3fe61 44 ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
2467e331
DB
45
46
47build: build-stamp
48
49build-stamp: config.status
50 dh_testdir
51
52 # Add here commands to compile the package.
53 $(MAKE)
54 #docbook-to-man debian/lxde-common.sgml > lxde-common.1
55
56 touch $@
57
58clean: unpatch
59 dh_testdir
60 dh_testroot
61 rm -f build-stamp
62
63 # Add here commands to clean up after the build process.
64 [ ! -f Makefile ] || $(MAKE) distclean
65 rm -f config.sub config.guess
44b3fe61 66 rm -f lxde-settings/*.gcno
2467e331
DB
67
68 dh_clean
69
70install: build
71 dh_testdir
72 dh_testroot
73 dh_clean -k
74 dh_installdirs
75
76 # Add here commands to install the package into debian/lxde-common.
77 $(MAKE) DESTDIR=$(CURDIR)/debian/lxde-common install
44b3fe61
DB
78 dh_movefiles --sourcedir=debian/lxde-common
79
2467e331
DB
80
81
82# Build architecture-independent files here.
83binary-indep: build install
84 dh_testdir
85 dh_testroot
6f144f57
DB
86 dh_installchangelogs -a -i
87 dh_installdocs -a -i
88 dh_installman -a -i
2467e331 89 dh_link usr/share/doc/lxde-common usr/share/doc/lxde
6f144f57
DB
90 dh_strip -a -i
91 dh_compress -a -i
92 dh_fixperms -a -i
2467e331 93 dh_installdeb -Nlxde-settings-daemon
6f144f57
DB
94 dh_gencontrol -a -i
95 dh_md5sums -a -i
96 dh_builddeb -a -i
2467e331
DB
97
98# Build architecture-dependent files here.
99binary-arch: build install
100 dh_testdir
101 dh_testroot
6f144f57
DB
102 dh_installchangelogs -a -i
103 dh_installdocs -a -i
2467e331
DB
104# dh_installexamples
105# dh_install
106# dh_installmenu
107# dh_installdebconf
108# dh_installlogrotate
109# dh_installemacsen
110# dh_installpam
111# dh_installmime
112# dh_python
113# dh_installinit
114# dh_installcron
115# dh_installinfo
6f144f57 116 dh_installman -a -i
2467e331
DB
117 dh_link usr/share/doc/lxde-common usr/share/doc/lxde \
118 usr/share/doc/lxde-common usr/share/doc/lxde-settings-daemon
6f144f57
DB
119 dh_strip -a -i
120 dh_compress -a -i
121 dh_fixperms -a -i
2467e331
DB
122# dh_perl
123# dh_makeshlibs
124 dh_installdeb -plxde-settings-daemon
125 dh_shlibdeps -L lxde-settings-daemon -l debian/lxde-settings-daemon/usr/bin
6f144f57
DB
126 dh_gencontrol -a -i
127 dh_md5sums -a -i
128 dh_builddeb -a -i
2467e331
DB
129
130binary: binary-indep binary-arch
131.PHONY: build clean binary-indep binary-arch binary install