3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
10 # These are used for cross-compiling and for saving the configure script
11 # from having to guess our platform (since we know it already)
12 DEB_HOST_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_HOST_GNU_TYPE
)
13 DEB_BUILD_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_BUILD_GNU_TYPE
)
18 ifneq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
23 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
27 config.status
: configure
29 # Add here commands to configure the package.
30 CFLAGS
="$(CFLAGS)" .
/configure
--host
=$(DEB_HOST_GNU_TYPE
) \
31 --build
=$(DEB_BUILD_GNU_TYPE
) \
33 --mandir=\
$${prefix}/share
/man \
34 --infodir=\
$${prefix}/share
/info \
35 --with-manualdir
=\
$${prefix}/share
/doc
/claws-mail
/manual \
36 --with-faqdir
=\
$${prefix}/share
/doc
/claws-mail
/faq \
43 --enable-spamassassin-plugin
=yes \
44 --enable-clamav-plugin
=yes \
45 --with-config-dir
=.claws-mail
49 build-stamp
: config.status
52 # Add here commands to compile the package.
62 # Add here commands to clean up after the build process.
64 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
65 cp
-f
/usr
/share
/misc
/config.sub config.sub
67 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
68 cp
-f
/usr
/share
/misc
/config.guess config.guess
80 # Add here commands to install the package into debian/claws-mail.
81 $(MAKE
) install DESTDIR
=$(CURDIR
)/debian
/claws-mail
82 rm -f
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/*.a
83 rm -f
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/*.la
84 #________________________________________[libclaws-mail-dev]__
85 mkdir
-m
755 -p
$(CURDIR
)/debian
/libclaws-mail-dev
/usr
/lib
/pkgconfig
86 mv
$(CURDIR
)/debian
/claws-mail
/usr
/include \
87 $(CURDIR
)/debian
/libclaws-mail-dev
/usr
/include
88 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/pkgconfig
/claws-mail.
pc \
89 $(CURDIR
)/debian
/libclaws-mail-dev
/usr
/lib
/pkgconfig
90 #__________________________________________[claws-mail-i18n]__
91 mkdir
-m
755 -p
$(CURDIR
)/debian
/claws-mail-i18n
/usr
/share
/locale
92 mv
$(CURDIR
)/debian
/claws-mail
/usr
/share
/locale
/* \
93 $(CURDIR
)/debian
/claws-mail-i18n
/usr
/share
/locale
94 #________________________________________[claws-mail-clamav]__
96 $(CURDIR
)/debian
/claws-mail-clamav
/usr
/lib
/claws-mail
/plugins
97 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/clamav
* \
98 $(CURDIR
)/debian
/claws-mail-clamav
/usr
/lib
/claws-mail
/plugins
99 #__________________________________[claws-mail-dillo-viewer]__
101 $(CURDIR
)/debian
/claws-mail-dillo-viewer
/usr
/lib
/claws-mail
/plugins
102 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/dillo
* \
103 $(CURDIR
)/debian
/claws-mail-dillo-viewer
/usr
/lib
/claws-mail
/plugins
104 #__________________________________[claws-mail-spamassassin]__
106 $(CURDIR
)/debian
/claws-mail-spamassassin
/usr
/lib
/claws-mail
/plugins
107 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/spamassassin
* \
108 $(CURDIR
)/debian
/claws-mail-spamassassin
/usr
/lib
/claws-mail
/plugins
109 #______________________________________[claws-mail-trayicon]__
111 $(CURDIR
)/debian
/claws-mail-trayicon
/usr
/lib
/claws-mail
/plugins
112 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/trayicon
* \
113 $(CURDIR
)/debian
/claws-mail-trayicon
/usr
/lib
/claws-mail
/plugins
114 #_______________________________________[claws-mail-pgpmime]__
116 $(CURDIR
)/debian
/claws-mail-pgpmime
/usr
/lib
/claws-mail
/plugins
117 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/pgpmime.
* \
118 $(CURDIR
)/debian
/claws-mail-pgpmime
/usr
/lib
/claws-mail
/plugins
119 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/pgpcore.so \
120 $(CURDIR
)/debian
/claws-mail-pgpmime
/usr
/lib
/claws-mail
/plugins
121 #_____________________________________[claws-mail-pgpinline]__
123 $(CURDIR
)/debian
/claws-mail-pgpinline
/usr
/lib
/claws-mail
/plugins
124 mv
$(CURDIR
)/debian
/claws-mail
/usr
/lib
/claws-mail
/plugins
/pgpinline.
* \
125 $(CURDIR
)/debian
/claws-mail-pgpinline
/usr
/lib
/claws-mail
/plugins
126 #_______________________________________________[claws-mail]__
129 $(CURDIR
)/debian
/claws-mail
/usr
/share
/pixmaps
/
130 cp
$(CURDIR
)/sylpheed
*.png \
131 $(CURDIR
)/debian
/claws-mail
/usr
/share
/pixmaps
/
134 $(CURDIR
)/debian
/claws-mail
/usr
/share
/applications
135 cp
$(CURDIR
)/debian
/claws-mail.desktop \
136 $(CURDIR
)/debian
/claws-mail
/usr
/share
/applications
/claws-mail.desktop
138 # Build architecture-independent files here.
139 binary-indep
: build
install
140 # We have nothing to do by default.
142 # Build architecture-dependent files here.
143 binary-arch
: build
install
146 dh_installchangelogs ChangeLog
161 binary
: binary-indep binary-arch
162 .PHONY
: build
clean binary-indep binary-arch binary
install