Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

rules 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Sample debian/rules that uses debhelper.
  4. # This file was originally written by Joey Hess and Craig Small.
  5. # As a special exception, when this file is copied by dh-make into a
  6. # dh-make output file, you may use that output file without restriction.
  7. # This special exception was added by Craig Small in version 0.37 of dh-make.
  8. # Uncomment this to turn on verbose mode.
  9. #export DH_VERBOSE=1
  10. # These are used for cross-compiling and for saving the configure script
  11. # from having to guess our platform (since we know it already)
  12. DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  13. DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  14. CFLAGS = -Wall -g
  15. ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  16. CFLAGS += -O0
  17. else
  18. CFLAGS += -O3
  19. endif
  20. config.status: configure
  21. dh_testdir
  22. # Add here commands to configure the package.
  23. CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-os-type=Ubuntu --sysconfdir=/etc
  24. build: build-stamp
  25. build-stamp: config.status
  26. dh_testdir
  27. # Add here commands to compile the package.
  28. $(MAKE)
  29. #docbook-to-man debian/snf-server.sgml > snf-server.1
  30. touch build-stamp
  31. clean:
  32. dh_testdir
  33. dh_testroot
  34. rm -f build-stamp
  35. # Add here commands to clean up after the build process.
  36. -$(MAKE) distclean
  37. ifneq "$(wildcard /usr/share/misc/config.sub)" ""
  38. cp -f /usr/share/misc/config.sub config.sub
  39. endif
  40. ifneq "$(wildcard /usr/share/misc/config.guess)" ""
  41. cp -f /usr/share/misc/config.guess config.guess
  42. endif
  43. dh_clean
  44. install: build
  45. dh_testdir
  46. dh_testroot
  47. dh_clean -k
  48. dh_installdirs
  49. # Add here commands to install the package into debian/snf-server.
  50. $(MAKE) install DESTDIR=$(CURDIR)/debian/snf-server
  51. # Build architecture-independent files here.
  52. binary-indep: build install
  53. # We have nothing to do by default.
  54. # Build architecture-dependent files here.
  55. binary-arch: build install
  56. dh_testdir
  57. dh_testroot
  58. dh_installchangelogs ChangeLog
  59. dh_installdocs
  60. dh_installexamples
  61. # dh_install
  62. # dh_installmenu
  63. # dh_installdebconf
  64. # dh_installlogrotate
  65. # dh_installemacsen
  66. # dh_installpam
  67. # dh_installmime
  68. # dh_installinit
  69. # dh_installcron
  70. # dh_installinfo
  71. dh_installman
  72. dh_link
  73. dh_strip
  74. dh_compress
  75. dh_fixperms
  76. # dh_perl
  77. # dh_python
  78. # dh_makeshlibs
  79. dh_installdeb
  80. dh_shlibdeps
  81. dh_gencontrol
  82. dh_md5sums
  83. dh_builddeb
  84. binary: binary-indep binary-arch
  85. .PHONY: build clean binary-indep binary-arch binary install