1#!/usr/bin/make -f 2 3# Uncomment this to turn on verbose mode. 4#export DH_VERBOSE=1 5 6CFLAGS = -g 7ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 8CFLAGS += -O0 9else 10CFLAGS += -O2 11endif 12 13build: build-stamp 14build-stamp: 15 dh_testdir 16 17 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo 18 make all 19 20 touch build-stamp 21 22clean: 23 dh_testdir 24 dh_testroot 25 rm -f build-stamp 26 27 make clean || true 28 29 dh_clean 30 31install: build 32 dh_testdir 33 dh_testroot 34 dh_clean -k 35 dh_installdirs 36 37 make install DESTDIR=/usr/src/packages/BUILD/debian/libfruit 38 39# Build architecture-independent files here. 40binary-indep: build install 41 # We have nothing to do by default. 42 43# Build architecture-dependent files here. 44binary-arch: build install 45 dh_testdir 46 dh_testroot 47# dh_installdebconf 48 dh_installdocs 49 dh_installexamples 50 dh_installmenu 51# dh_installlogrotate 52# dh_installemacsen 53# dh_installpam 54# dh_installmime 55# dh_installinit 56 dh_installcron 57 dh_installman 58 dh_installinfo 59# dh_undocumented 60 dh_installchangelogs 61 dh_link 62 dh_strip 63 dh_compress 64 dh_fixperms 65# dh_makeshlibs 66 dh_installdeb 67# dh_perl 68 dh_shlibdeps 69 dh_gencontrol 70 dh_md5sums 71 dh_builddeb 72 73binary: binary-indep binary-arch 74.PHONY: build clean binary-indep binary-arch binary install