Makefile 417 B

123456789101112131415161718192021
  1. .PHONY: os stow deps
  2. OS_NAME := $(shell uname -s | tr A-Z a-z)
  3. stow:
  4. stow -t ~ */
  5. @if [ OS_NAME = "linux" ]; then \
  6. dconf load / < gnome/.local/share/custom-gconf.conf \
  7. fi
  8. deps:
  9. @echo "Installing software for ${OS_NAME} platform"
  10. @if [ $(OS_NAME) = "darwin" ]; then\
  11. cd macos/.config/homebrew && brew bundle\
  12. fi
  13. @if [ $(OS_NAME) = "linux" ]; then\
  14. @echo "Not macos"\
  15. endif
  16. os:
  17. @echo $(OS_NAME)