1
0

rules 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #!/usr/bin/make -f
  2. include /usr/share/dpatch/dpatch.make
  3. DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  4. DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  5. config.status: patch configure
  6. dh_testdir
  7. ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc/ngircd --without-syslog
  8. build: build-stamp
  9. build-stamp: config.status
  10. dh_testdir
  11. $(MAKE)
  12. touch build-stamp
  13. clean: unpatch
  14. dh_testdir
  15. dh_testroot
  16. rm -f build-stamp
  17. -$(MAKE) distclean
  18. ifneq "$(wildcard /usr/share/misc/config.sub)" ""
  19. cp -f /usr/share/misc/config.sub config.sub
  20. endif
  21. ifneq "$(wildcard /usr/share/misc/config.guess)" ""
  22. cp -f /usr/share/misc/config.guess config.guess
  23. endif
  24. dh_clean
  25. install: build
  26. dh_testdir
  27. dh_testroot
  28. dh_clean -k
  29. dh_installdirs
  30. $(MAKE) install DESTDIR=$(CURDIR)/debian/ngircd
  31. rm -rf $(CURDIR)/debian/ngircd/etc
  32. install -m 640 -D $(CURDIR)/debian/ngircd.conf $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.conf
  33. install -m 640 -D $(CURDIR)/debian/ngircd.motd $(CURDIR)/debian/ngircd/etc/ngircd/ngircd.motd
  34. rm -rf $(CURDIR)/debian/ngircd/usr/share
  35. binary-indep: build install
  36. binary-arch: build install
  37. dh_testdir
  38. dh_testroot
  39. dh_installchangelogs ChangeLog
  40. dh_installexamples doc/sample-ngircd.conf
  41. dh_installdocs
  42. dh_installinit
  43. dh_installman man/ngircd.8 man/ngircd.conf.5
  44. dh_compress
  45. dh_strip
  46. dh_fixperms
  47. dh_installdeb
  48. dh_shlibdeps
  49. dh_gencontrol
  50. dh_md5sums
  51. dh_builddeb
  52. binary: binary-indep binary-arch
  53. .PHONY: build clean binary-indep binary-arch binary install