PageRenderTime 58ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/python3-alpha/ncurses-5.9/test/package/debian/rules

https://code.google.com/p/python-for-android/
Makefile | 90 lines | 58 code | 21 blank | 11 comment | 1 complexity | cbdb48ce9012ce76ab323f510af5df65 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-3.0, GPL-2.0, 0BSD
  1. #!/usr/bin/make -f
  2. # MAde with the aid of dh_make, by Craig Small
  3. # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
  4. # Some lines taken from debmake, by Cristoph Lameter.
  5. # Uncomment this to turn on verbose mode.
  6. #export DH_VERBOSE=1
  7. # These are used for cross-compiling and for saving the configure script
  8. # from having to guess our platform (since we know it already)
  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. CFLAGS =
  12. ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  13. CFLAGS += -O0
  14. else
  15. CFLAGS += -O2
  16. endif
  17. ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  18. INSTALL_PROGRAM += -s
  19. endif
  20. configure: configure-stamp
  21. configure-stamp:
  22. dh_testdir
  23. CFLAGS="$(CFLAGS)" ./configure \
  24. --host=$(DEB_HOST_GNU_TYPE) \
  25. --build=$(DEB_BUILD_GNU_TYPE) \
  26. --bindir=\$${prefix}/bin/ncurses-examples \
  27. --prefix=/usr \
  28. --with-ncursesw \
  29. --disable-rpath-hack
  30. touch configure-stamp
  31. build: build-stamp
  32. build-stamp: configure-stamp
  33. dh_testdir
  34. $(MAKE)
  35. touch build-stamp
  36. clean:
  37. dh_testdir
  38. dh_testroot
  39. [ ! -f makefile ] || $(MAKE) distclean
  40. rm -f configure-stamp build-stamp install-stamp
  41. dh_clean
  42. install: install-stamp
  43. install-stamp: build-stamp
  44. dh_testdir
  45. dh_testroot
  46. dh_clean -k
  47. dh_installdirs
  48. $(MAKE) install DESTDIR=$(CURDIR)/debian/ncurses-examples
  49. touch install-stamp
  50. # Build architecture-independent files here.
  51. binary-indep: build install
  52. # No binary-indep target.
  53. # Build architecture-dependent files here.
  54. binary-arch: build install
  55. dh_testdir
  56. dh_testroot
  57. dh_installdocs
  58. dh_installexamples
  59. dh_installchangelogs NEWS
  60. dh_strip
  61. dh_compress
  62. dh_fixperms
  63. dh_installdeb
  64. dh_shlibdeps
  65. dh_gencontrol
  66. dh_md5sums
  67. dh_builddeb
  68. binary: binary-indep binary-arch
  69. .PHONY: build clean binary-indep binary-arch binary install install-stamp