1
0

rules 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. #!/usr/bin/make -f
  2. # Sample debian/rules that uses debhelper.
  3. # GNU copyright 1997 to 1999 by Joey Hess.
  4. # Uncomment this to turn on verbose mode.
  5. #export DH_VERBOSE=1
  6. # This is the debhelper compatibility version to use.
  7. export DH_COMPAT=3
  8. # These are used for cross-compiling and for saving the configure script
  9. # from having to guess our platform (since we know it already)
  10. DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  11. DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  12. ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
  13. CFLAGS += -g
  14. endif
  15. ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
  16. INSTALL_PROGRAM += -s
  17. endif
  18. # shared library versions, option 1
  19. version=0.1.7
  20. major=0
  21. # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
  22. #version=`ls src/.libs/lib*.so.* | \
  23. # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
  24. #major=`ls src/.libs/lib*.so.* | \
  25. # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
  26. config.status: configure
  27. dh_testdir
  28. # Add here commands to configure the package.
  29. CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
  30. build: build-stamp
  31. build-stamp: config.status
  32. dh_testdir
  33. # Add here commands to compile the package.
  34. $(MAKE)
  35. doxygen
  36. touch build-stamp
  37. clean:
  38. dh_testdir
  39. dh_testroot
  40. rm -f build-stamp
  41. # Add here commands to clean up after the build process.
  42. -$(MAKE) distclean
  43. -test -r /usr/share/misc/config.sub && \
  44. cp -f /usr/share/misc/config.sub config.sub
  45. -test -r /usr/share/misc/config.guess && \
  46. cp -f /usr/share/misc/config.guess config.guess
  47. dh_clean
  48. install: build
  49. dh_testdir
  50. dh_testroot
  51. dh_clean -k
  52. dh_installdirs
  53. # Add here commands to install the package into debian/tmp
  54. $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
  55. install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/latex
  56. install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/man/man3
  57. install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/html
  58. install -D docs/README $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/README
  59. install -D docs/latex/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/latex
  60. install -D docs/html/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/html
  61. install -D docs/man/man3/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/man/man3
  62. # Build architecture-independent files here.
  63. binary-indep: build install
  64. # We have nothing to do by default.
  65. # Build architecture-dependent files here.
  66. binary-arch: build install
  67. dh_testdir
  68. dh_testroot
  69. dh_movefiles
  70. # dh_installdebconf
  71. dh_installdocs
  72. dh_installexamples
  73. dh_installmenu
  74. # dh_installlogrotate
  75. # dh_installemacsen
  76. # dh_installpam
  77. # dh_installmime
  78. # dh_installinit
  79. dh_installcron
  80. dh_installman
  81. dh_installinfo
  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