Adding debian version 0.3.5.2+svn20080509-1.
[debian/lxpanel.git] / debian / rules
CommitLineData
6f31b6c9
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
19
20config.status: configure patch-stamp
21 dh_testdir
22 # Add here commands to configure the package.
23ifneq "$(wildcard /usr/share/misc/config.sub)" ""
24 cp -f /usr/share/misc/config.sub config.sub
25endif
26ifneq "$(wildcard /usr/share/misc/config.guess)" ""
27 cp -f /usr/share/misc/config.guess config.guess
28endif
29 ./configure \
30 --host=$(DEB_HOST_GNU_TYPE) \
31 --build=$(DEB_BUILD_GNU_TYPE) \
32 --prefix=/usr \
33 --mandir=\$${prefix}/share/man \
34 --infodir=\$${prefix}/share/info \
35 CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,--as-needed"
36
37
38build: build-stamp
39
40build-stamp: config.status
41 dh_testdir
42
43 # Add here commands to compile the package.
44 $(MAKE)
45 #docbook-to-man debian/lxpanel.sgml > lxpanel.1
46
47 touch $@
48
49clean: unpatch
50 dh_testdir
51 dh_testroot
52 rm -f build-stamp
53
54 # Add here commands to clean up after the build process.
55 [ ! -f Makefile ] || $(MAKE) distclean
56 rm -f config.sub config.guess
57 rm -f intltool-extract \
58 intltool-update \
59 intltool-merge \
60 man/lxpanel.1 \
61 man/lxpanelctl.1
62
63 dh_clean
64
65install: build
66 dh_testdir
67 dh_testroot
68 dh_clean -k
69 dh_installdirs
70
71 # Add here commands to install the package into debian/lxpanel.
72 $(MAKE) DESTDIR=$(CURDIR)/debian/lxpanel install
73
74 # Install .desktop files
75 install -d $(CURDIR)/debian/lxpanel/usr/share/applications
76 install -m644 $(CURDIR)/debian/lxde-x-terminal-emulator.desktop \
77 $(CURDIR)/debian/lxpanel/usr/share/applications
78 install -m644 $(CURDIR)/debian/lxde-x-www-browser.desktop \
79 $(CURDIR)/debian/lxpanel/usr/share/applications
80
81
82# Build architecture-independent files here.
83binary-indep: build install
84# We have nothing to do by default.
85
86# Build architecture-dependent files here.
87binary-arch: build install
88 dh_testdir
89 dh_testroot
90 dh_installchangelogs
91 dh_installdocs
92 dh_installexamples
93# dh_install
94# dh_installmenu
95# dh_installdebconf
96# dh_installlogrotate
97# dh_installemacsen
98# dh_installpam
99# dh_installmime
100# dh_python
101# dh_installinit
102# dh_installcron
103# dh_installinfo
104 dh_desktop -A lxde-x-terminal-emulator.desktop lxde-x-www-browser.desktop
105 dh_installman
106 dh_link
107 dh_strip
108 dh_compress
109 dh_fixperms
110# dh_perl
111# dh_makeshlibs
112 dh_installdeb
113 dh_shlibdeps
114 dh_gencontrol
115 dh_md5sums
116 dh_builddeb
117
118binary: binary-indep binary-arch
119.PHONY: build clean binary-indep binary-arch binary install