Portable environments files and scripts.
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.

67 lines
1.5KB

  1. # env
  2. # Written in 2019 by Lucas
  3. # CC0 1.0 Universal/Public domain - No rights reserved
  4. #
  5. # To the extent possible under law, the author(s) have dedicated all
  6. # copyright and related and neighboring rights to this software to the
  7. # public domain worldwide. This software is distributed without any
  8. # warranty. You should have received a copy of the CC0 Public Domain
  9. # Dedication along with this software. If not, see
  10. # <http://creativecommons.org/publicdomain/zero/1.0/>.
  11. .POSIX:
  12. .SUFFIXES:
  13. PREFIX= $(HOME)
  14. DIRS= bin dotfiles spoon themes utils xdg-config-dir
  15. all: install
  16. clean: clean-bin clean-dotfiles clean-themes
  17. rm -f env.tgz
  18. clean-bin:
  19. cd bin && $(MAKE) clean
  20. clean-dotfiles:
  21. cd dotfiles && $(MAKE) clean
  22. clean-themes:
  23. cd themes && $(MAKE) clean
  24. diff: diff-dotfiles diff-xdg-config-dir
  25. diff-dotfiles:
  26. -cd dotfiles && $(MAKE) diff
  27. diff-xdg-config-dir:
  28. -cd xdg-config-dir && $(MAKE) diff
  29. dist: clean
  30. mkdir -p env.dist-tmp
  31. cp -fr Makefile $(DIRS) env.dist-tmp
  32. pax -ws "/.dist-tmp//" env.dist-tmp | gzip >env.tgz
  33. rm -fr env.dist-tmp
  34. install: install-bin install-dotfiles install-xdg-config-dir
  35. install-bin:
  36. cd bin && $(MAKE) install
  37. install-dotfiles:
  38. cd dotfiles && $(MAKE) install
  39. install-xdg-config-dir:
  40. cd xdg-config-dir && $(MAKE) install
  41. uninstall: uninstall-bin uninstall-dotfiles uninstall-xdg-config-dir
  42. uninstall-bin:
  43. cd bin && $(MAKE) uninstall
  44. uninstall-dotfiles:
  45. cd dotfiles && $(MAKE) uninstall
  46. uninstall-xdg-config-dir:
  47. cd xdg-config-dir && $(MAKE) uninstall