0001-Makefile-install-static-library-and-headers-separate.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 0dcd2368c3e23a5cc1cc4a979d9c241ed9302236 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Sun, 4 Jan 2015 16:06:07 +0100
  4. Subject: [PATCH] Makefile: install static library and headers separately
  5. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  6. ---
  7. Makefile | 12 +++++++-----
  8. 1 file changed, 7 insertions(+), 5 deletions(-)
  9. diff --git a/Makefile b/Makefile
  10. index e27dcbd..ecf52d1 100644
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -45,12 +45,10 @@ perl-lib: static
  14. cd LockDev && make OPTIMIZE="-O2 -g -Wall"
  15. cd LockDev && make test
  16. -.PHONY: install install_dev install_dbg install_doc install_run
  17. -install: install_dev install_dbg install_doc install_run
  18. +.PHONY: install install_dev install_dbg install_doc install_run install_static
  19. +install: install_dev install_dbg install_doc install_run install_static
  20. -install_dev: ${static} src/lockdev.h
  21. - install -m755 -d ${libdir}
  22. - install -m644 ${static} ${libdir}
  23. +install_dev: src/lockdev.h
  24. install -m755 -d ${incdir}
  25. install -m644 src/lockdev.h ${incdir}
  26. install -m644 src/ttylock.h ${incdir}
  27. @@ -69,6 +67,10 @@ install_doc: docs/lockdev.3
  28. install -m755 -d ${mandir}/man3
  29. install -m644 docs/lockdev.3 ${mandir}/man3
  30. +install_static: ${static}
  31. + install -m755 -d ${libdir}
  32. + install -m644 ${static} ${libdir}
  33. +
  34. install_run: ${shared}
  35. install -m755 -d ${libdir}
  36. install -m644 ${shared} ${libdir}
  37. --
  38. 1.9.3