rules 954 B

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