rules 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #!/usr/bin/make -f
  2. PACKAGE=isync
  3. CFLAGS = -Wall -g
  4. ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  5. CFLAGS += -O0
  6. else
  7. CFLAGS += -O2
  8. endif
  9. DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  10. DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  11. build: build-stamp
  12. build-stamp: patch-stamp
  13. dh_testdir
  14. touch configure.in ; touch aclocal.m4 ; touch configure
  15. ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man
  16. $(MAKE) CFLAGS="$(CFLAGS)"
  17. touch build-stamp
  18. clean: clean1 unpatch
  19. clean1:
  20. dh_testdir
  21. dh_testroot
  22. rm -f build-stamp
  23. -$(MAKE) distclean
  24. dh_clean Makefile config.log config.status
  25. install: build
  26. dh_testdir
  27. dh_testroot
  28. dh_clean -k
  29. dh_installdirs usr/bin usr/share/man/man1
  30. $(MAKE) DESTDIR=$(CURDIR)/debian/isync install
  31. binary-indep: build install
  32. binary-arch: build install
  33. dh_testdir
  34. dh_testroot
  35. dh_installchangelogs ChangeLog
  36. dh_installdocs AUTHORS NEWS README TODO
  37. dh_installexamples isyncrc.sample
  38. dh_installman
  39. dh_installdebconf
  40. dh_strip
  41. dh_compress
  42. dh_fixperms
  43. dh_installdeb
  44. dh_shlibdeps
  45. dh_gencontrol
  46. dh_md5sums
  47. dh_builddeb
  48. binary: binary-indep binary-arch
  49. .PHONY: build clean binary-indep binary-arch binary install clean1
  50. include /usr/share/dpatch/dpatch.make