2002-01-16 21:43:58 +00:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2004-01-11 06:35:10 +00:00
|
|
|
CFLAGS = -Wall -g
|
|
|
|
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
|
|
|
|
CFLAGS += -O0
|
|
|
|
else
|
|
|
|
CFLAGS += -O2
|
|
|
|
endif
|
|
|
|
|
2004-01-11 08:08:37 +00:00
|
|
|
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
|
DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
|
|
|
|
2002-01-16 21:43:58 +00:00
|
|
|
build: build-stamp
|
2012-08-26 14:16:12 +00:00
|
|
|
build-stamp:
|
2002-01-16 21:43:58 +00:00
|
|
|
dh_testdir
|
2012-08-26 14:16:12 +00:00
|
|
|
./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man
|
2004-01-11 06:35:10 +00:00
|
|
|
$(MAKE) CFLAGS="$(CFLAGS)"
|
2002-01-16 21:43:58 +00:00
|
|
|
touch build-stamp
|
|
|
|
|
2012-08-26 14:16:12 +00:00
|
|
|
clean:
|
2002-01-16 21:43:58 +00:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2003-03-26 03:33:15 +00:00
|
|
|
rm -f build-stamp
|
2012-08-26 14:16:12 +00:00
|
|
|
[ ! -f Makefile ] || $(MAKE) distclean
|
2003-03-26 03:33:15 +00:00
|
|
|
dh_clean Makefile config.log config.status
|
2002-01-16 21:43:58 +00:00
|
|
|
|
|
|
|
install: build
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_clean -k
|
2003-03-26 03:33:15 +00:00
|
|
|
dh_installdirs usr/bin usr/share/man/man1
|
|
|
|
$(MAKE) DESTDIR=$(CURDIR)/debian/isync install
|
2012-08-26 14:16:12 +00:00
|
|
|
rm -r $(CURDIR)/debian/isync/usr/share/doc
|
|
|
|
mv $(CURDIR)/debian/isync/usr/bin/get-cert $(CURDIR)/debian/isync/usr/bin/mbsync-get-cert
|
2002-01-16 21:43:58 +00:00
|
|
|
|
|
|
|
binary-indep: build install
|
|
|
|
|
|
|
|
binary-arch: build install
|
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installchangelogs ChangeLog
|
2003-03-26 03:33:15 +00:00
|
|
|
dh_installdocs AUTHORS NEWS README TODO
|
2004-03-27 16:07:20 +00:00
|
|
|
dh_installexamples src/mbsyncrc.sample src/compat/isyncrc.sample
|
2003-03-26 03:33:15 +00:00
|
|
|
dh_installman
|
2002-01-16 21:43:58 +00:00
|
|
|
dh_strip
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
|
|
|
dh_installdeb
|
|
|
|
dh_shlibdeps
|
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
|
|
|
|
|
|
|
binary: binary-indep binary-arch
|
2012-08-26 14:16:12 +00:00
|
|
|
.PHONY: build clean binary-indep binary-arch binary install
|