rules 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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=4
  8. package := gkrellm-multiping
  9. prefix := $(shell pwd)/debian/$(package)
  10. CFLAGS = -g -Wall
  11. ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
  12. CFLAGS += -O0
  13. else
  14. CFLAGS += -O2
  15. endif
  16. build:
  17. dh_testdir
  18. # Add here commands to compile the package.
  19. $(MAKE) INSTALLROOT=/usr
  20. clean:
  21. dh_testdir
  22. dh_testroot
  23. # Add here commands to clean up after the build process.
  24. -$(MAKE) clean
  25. dh_clean
  26. install: build
  27. dh_testdir
  28. dh_testroot
  29. dh_clean -k
  30. dh_installdirs
  31. # Add here commands to install the package into debian/gkrellm-multiping.
  32. $(MAKE) install INSTALLROOT=$(prefix)/usr
  33. # Build architecture-independent files here.
  34. binary-indep: build install
  35. # We have nothing to do by default.
  36. # Build architecture-dependent files here.
  37. binary-arch: build install
  38. dh_testdir
  39. dh_testroot
  40. dh_installdocs
  41. dh_installchangelogs ChangeLog
  42. dh_link
  43. dh_strip
  44. dh_compress
  45. dh_fixperms
  46. dh_installdeb
  47. dh_shlibdeps
  48. dh_gencontrol
  49. dh_md5sums
  50. dh_builddeb
  51. binary: binary-indep binary-arch
  52. .PHONY: build clean binary-indep binary-arch binary install configure