rules 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 Makefile.am ; touch aclocal.m4
  15. touch Makefile.in ; touch configure
  16. ./configure --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man
  17. $(MAKE) CFLAGS="$(CFLAGS)"
  18. touch build-stamp
  19. clean: clean1 unpatch
  20. clean1:
  21. dh_testdir
  22. dh_testroot
  23. rm -f build-stamp
  24. -$(MAKE) distclean
  25. dh_clean Makefile config.log config.status
  26. install: build
  27. dh_testdir
  28. dh_testroot
  29. dh_clean -k
  30. dh_installdirs usr/bin usr/share/man/man1
  31. $(MAKE) DESTDIR=$(CURDIR)/debian/isync install
  32. binary-indep: build install
  33. binary-arch: build install
  34. dh_testdir
  35. dh_testroot
  36. dh_installchangelogs ChangeLog
  37. dh_installdocs AUTHORS NEWS README TODO
  38. dh_installexamples isyncrc.sample
  39. dh_installman
  40. dh_installdebconf
  41. dh_strip
  42. dh_compress
  43. dh_fixperms
  44. dh_installdeb
  45. dh_shlibdeps
  46. dh_gencontrol
  47. dh_md5sums
  48. dh_builddeb
  49. binary: binary-indep binary-arch
  50. .PHONY: build clean binary-indep binary-arch binary install clean1
  51. include /usr/share/dpatch/dpatch.make