Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

rules 3.2 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. #!/usr/bin/make -f
  2. #export DH_VERBOSE=1
  3. export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  4. export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  5. # FOR AUTOCONF 2.52 AND NEWER ONLY
  6. ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
  7. confflags += --build $(DEB_HOST_GNU_TYPE)
  8. else
  9. confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
  10. endif
  11. confflags += --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
  12. confflags += --enable-ncurses --enable-slang --enable-x11 \
  13. --enable-imlib2 --enable-doc
  14. configure: configure-stamp
  15. configure-stamp:
  16. dh_testdir
  17. ./configure $(confflags) --prefix=/usr
  18. touch configure-stamp
  19. build: configure-stamp build-stamp
  20. build-stamp:
  21. dh_testdir
  22. $(MAKE)
  23. touch build-stamp
  24. clean:
  25. dh_testdir
  26. dh_testroot
  27. rm -f build-stamp configure-stamp
  28. -$(MAKE) distclean
  29. dh_clean
  30. install: build
  31. dh_testdir
  32. dh_testroot
  33. dh_clean -k
  34. dh_installdirs -plibcaca-dev
  35. dh_installdirs usr/bin usr/share/doc/caca-utils usr/share/man/man1 -pcaca-utils
  36. dh_installdirs usr/lib -plibcucul0
  37. dh_installdirs usr/lib -plibcaca0
  38. $(MAKE) install DESTDIR=`pwd`/debian/libcaca-dev/
  39. mv debian/libcaca-dev/usr/lib/libcucul*.so.* debian/libcucul0/usr/lib
  40. mv debian/libcaca-dev/usr/lib/libcaca*.so.* debian/libcaca0/usr/lib
  41. mv debian/libcaca-dev/usr/bin/cacaball debian/caca-utils/usr/bin
  42. mv debian/libcaca-dev/usr/bin/cacaview debian/caca-utils/usr/bin
  43. mv debian/libcaca-dev/usr/bin/cacafire debian/caca-utils/usr/bin
  44. mv debian/libcaca-dev/usr/bin/cacamoir debian/caca-utils/usr/bin
  45. mv debian/libcaca-dev/usr/bin/cacaplas debian/caca-utils/usr/bin
  46. mv debian/libcaca-dev/usr/share/libcaca debian/caca-utils/usr/share
  47. mv debian/libcaca-dev/usr/share/man/man1/cacaball.1 \
  48. debian/caca-utils/usr/share/man/man1/
  49. mv debian/libcaca-dev/usr/share/man/man1/cacafire.1 \
  50. debian/caca-utils/usr/share/man/man1/
  51. mv debian/libcaca-dev/usr/share/man/man1/cacamoir.1 \
  52. debian/caca-utils/usr/share/man/man1/
  53. mv debian/libcaca-dev/usr/share/man/man1/cacaplas.1 \
  54. debian/caca-utils/usr/share/man/man1/
  55. mv debian/libcaca-dev/usr/share/man/man1/cacaview.1 \
  56. debian/caca-utils/usr/share/man/man1/
  57. cp debian/libcaca-dev/usr/share/doc/libcaca-dev/README \
  58. debian/libcaca-dev/usr/share/doc/libcaca-dev/TODO \
  59. debian/libcaca-dev/usr/share/doc/libcaca-dev/AUTHORS \
  60. debian/libcaca-dev/usr/share/doc/libcaca-dev/NEWS \
  61. debian/libcaca-dev/usr/share/doc/libcaca-dev/NOTES \
  62. debian/caca-utils/usr/share/doc/caca-utils/
  63. # Build architecture-independent files here.
  64. binary-indep: build install
  65. # We have nothing to do by default.
  66. # Build architecture-dependent files here.
  67. binary-arch: build install
  68. # dh_testversion
  69. dh_testdir
  70. dh_testroot
  71. # dh_installdebconf
  72. dh_installdocs
  73. # dh_installexamples
  74. dh_installmenu
  75. # dh_installemacsen
  76. # dh_installpam
  77. # dh_installinit
  78. dh_installcron
  79. # dh_installmanpages
  80. dh_installinfo
  81. dh_installmime
  82. # dh_undocumented
  83. dh_installchangelogs ChangeLog
  84. dh_link
  85. dh_strip
  86. dh_compress
  87. dh_fixperms
  88. dh_makeshlibs
  89. dh_installdeb
  90. # dh_perl
  91. dh_shlibdeps
  92. dh_gencontrol
  93. dh_md5sums
  94. dh_builddeb
  95. binary: binary-indep binary-arch
  96. .PHONY: build clean binary-indep binary-arch binary install configure