rules 1.0 KB

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