Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

45 lignes
1.2 KiB

  1. #!/usr/bin/make -f
  2. # See debhelper(7) (uncomment to enable)
  3. # output every command that modifies files on the build system.
  4. #export DH_VERBOSE = 1
  5. # These won't do anything until the Makefiles are fixed
  6. #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  7. #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
  8. #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
  9. VERSION:=$(shell cat VERSION)
  10. export VERSION
  11. MAJOR:=$(shell echo $${VERSION%%.*})
  12. WIRINGPI_SONAME_SUFFIX:=.$(MAJOR)
  13. export WIRINGPI_SONAME_SUFFIX
  14. %:
  15. dh $@
  16. override_dh_prep:
  17. dh_prep -Xdebian/tmp
  18. dirs:
  19. dh_installdirs -A
  20. mkdir debian/tmp
  21. set -e; for pkg in `dh_listpackages`; do \
  22. (cd debian/$$pkg; find -type d) | \
  23. (cd debian/tmp; xargs mkdir -p) \
  24. done
  25. mkdir -p debian/tmp/usr/lib/$(DEB_TARGET_GNU_TYPE)/
  26. override_dh_clean:
  27. dh_clean
  28. WIRINGPI_SUDO= sh -xe ./build clean
  29. override_dh_auto_build: dirs
  30. V=1 LDCONFIG=: WIRINGPI_SUDO= WIRINGPI_SUID=0 \
  31. DESTDIR=`pwd`/debian/tmp/usr PREFIX= sh -xe ./build
  32. mv `find debian/tmp/usr/lib -type f` debian/tmp/usr/lib/$(DEB_TARGET_GNU_TYPE)/
  33. set -ex; for lib in `find debian/tmp/usr/lib/$(DEB_TARGET_GNU_TYPE)/ -type f`; do \
  34. ln -s $${lib##*/} $${lib%%.$(VERSION)}; \
  35. ln -s $${lib##*/} $${lib%%.$(VERSION)}.$(MAJOR); \
  36. done