1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
DEB_CLI_ABI_VERSION = 3.0
DEB_CLI_API_VERSION = 0.17.1
export MONO_SHARED_DIR=$(CURDIR)
include /usr/share/dpatch/dpatch.make
configure: configure-stamp
configure-stamp: patch-stamp
dh_testdir
./configure --prefix=/usr
touch configure-stamp
build: build-stamp
build-stamp: configure-stamp
dh_testdir
$(MAKE)
touch build-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
[ ! -f Makefile ] || $(MAKE) distclean
# make distclean is not clean
find -name "*.exe" -or -name "*.mdb" -delete
rm -rf $(MONO_SHARED_DIR)/.wapi
rm -f config.log config.status
rm -f build-stamp configure-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
rm $(CURDIR)/debian/tmp/usr/lib/*.la
mv $(CURDIR)/debian/tmp/usr/lib/pkgconfig/evolution-sharp.pc \
$(CURDIR)/debian/tmp/usr/lib/pkgconfig/evolution-sharp-$(DEB_CLI_ABI_VERSION).pc
perl -pe 's/#DEB_CLI_ABI_VERSION#/$(DEB_CLI_ABI_VERSION)/' -i \
$(CURDIR)/debian/tmp/usr/lib/pkgconfig/evolution-sharp-$(DEB_CLI_ABI_VERSION).pc \
$(CURDIR)/debian/tmp/usr/lib/mono/gac/evolution-sharp/*/evolution-sharp.dll.config
binary-arch: build install
dh_testdir
dh_testroot
dh_install -s --sourcedir=debian/tmp
dh_installchangelogs -s ChangeLog
dh_installdocs -s
dh_installman -s
dh_installcligac -s
dh_link -s
dh_strip -s
dh_clistrip -s
dh_compress -s
dh_fixperms -s
dh_clifixperms -s
dh_makeclilibs -s -m $(DEB_CLI_API_VERSION)
dh_installdeb -s
dh_shlibdeps -s
dh_clideps -s -d
dh_gencontrol -s
dh_md5sums -s
dh_builddeb -s
binary: binary-arch
.PHONY: build clean binary-arch binary install configure
|