0001-make-clean-now-revert-to-pre-configure-state.patch 758 B

123456789101112131415161718192021222324252627282930
  1. From: Fabien Givors <f+debian@chezlefab.net>
  2. Date: Mon, 13 Oct 2014 19:26:11 +0200
  3. Subject: make clean now revert to pre-configure state
  4. -
  5. Author: Fabien Givors <f+debian@chezlefab.net>
  6. Forwarded: yes
  7. Last-Update: 2014-10-13
  8. * make clean remove makefile.mk file
  9. * make clean restore default PREFIX in config.h
  10. ---
  11. Makefile | 3 +++
  12. 1 file changed, 3 insertions(+)
  13. diff --git a/Makefile b/Makefile
  14. index a241804..e8924fd 100644
  15. --- a/Makefile
  16. +++ b/Makefile
  17. @@ -48,6 +48,9 @@ mrproper: clean
  18. clean:
  19. rm -f obsession-exit obsession-logout xdg-autostart *.o $(I18N_MO)
  20. + sed -i 's#define PREFIX.*#define PREFIX "/usr/local"#' config.h
  21. +
  22. + rm -f makefile.mk
  23. configure:
  24. sed -i 's#define PREFIX.*#define PREFIX "$(PREFIX)"#' config.h