You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

57 lines
1.5 KiB

  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. # Force UTF8 to workaround doc build error
  6. export LC_ALL=C.UTF-8
  7. export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
  8. export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  9. DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
  10. # To avoid running configure twice (because gnome-autogen.sh)
  11. export NOCONFIGURE=yes
  12. # This will set current version string
  13. VERSION := $(shell dpkg-parsechangelog | sed -n 's/Version: //p')
  14. # This will set major version string (strip substring '.<something>' after 'maemo<something>')
  15. CINNAMON_VERSION := $(shell echo $(VERSION) | sed 's/\(.*.*\)\..*/\1.0/')
  16. DH_GENCONTROL_ARGS = -Vcinnamon:Version=$(CINNAMON_VERSION)
  17. %:
  18. dh $@ --with python3,gir
  19. override_dh_autoreconf:
  20. dh_autoreconf --as-needed ./autogen.sh
  21. override_dh_auto_configure:
  22. dh_auto_configure -- \
  23. --enable-compile-warnings=yes \
  24. --enable-gtk-doc \
  25. override_dh_auto_test:
  26. # Disable checks since they are not functional for the moment
  27. :
  28. override_dh_install-indep:
  29. dh_install --list-missing
  30. override_dh_install-arch:
  31. dh_install -X.la --list-missing
  32. override_dh_strip:
  33. dh_strip --dbg-package=cinnamon-dbg
  34. override_dh_makeshlibs:
  35. dh_makeshlibs -pcinnamon -Xlibcinnamon.so
  36. dh_makeshlibs --remaining-packages
  37. override_dh_girepository:
  38. dh_girepository -l src -p/usr/lib/$(DEB_HOST_MULTIARCH)/muffin /usr/lib/$(DEB_HOST_MULTIARCH)/cinnamon
  39. override_dh_gencontrol:
  40. dh_gencontrol -- $(DH_GENCONTROL_ARGS)