From e7c295497557605574b360334ff254ff8652272c Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 5 Mar 2015 23:57:28 +0900 Subject: [PATCH] Use private home by default --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index c34045b..3c0b5a6 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,6 @@ # Variable definitions -home ?= $(HOME) - dotfiles_url_base := https://raw.githubusercontent.com/10sr/dotfiles/master use_git ?= t git_auth ?= t @@ -46,6 +44,18 @@ endif $(warning dotfiles_dir: $(dotfiles_dir)) +ifeq ($(home),) +ifeq ($(global_home),) +$(warning home not set and global_home is empty) +# TODO: What this should be? +home := $(dotfiles_dir)/.home +else +home := $(HOME) +endif +endif +$(warning home: $(home)) + + localdir := $(home)/.local vardir := $(home)/.var bindir := $(localdir)/bin