Pārlūkot izejas kodu

Show warning when DOTFILES_DIR nor dotfiles_dir is defined

pull/5/head
10sr pirms 9 gadiem
vecāks
revīzija
ec8d57a140
1 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. +10
    -1
      Makefile

+ 10
- 1
Makefile Parādīt failu

@@ -5,11 +5,20 @@

home ?= $(HOME)

dotfiles_dir ?= $(home)/10sr_dotfiles
dotfiles_url_base = https://raw.githubusercontent.com/10sr/dotfiles/master/
dotfiles_git = git@github.com:10sr/dotfiles.git
dotfiles_git_pub = http://github.com/10sr/dotfiles.git

ifeq (,$(DOTFILES_DIR))
ifeq (,$(dotfiles_dir))
$(warning "Neigher DOTFILES_DIR nor dotfiles_dir not defined.")
$(warning "Use $(home)/10sr_dotfiles for default.")
endif
endif
DOTFILES_DIR ?= $(home)/10sr_dotfiles
dotfiles_dir ?= $(DOTFILES_DIR)


localdir = $(home)/.local
vardir = $(home)/.var
bindir = $(localdir)/bin


Notiek ielāde…
Atcelt
Saglabāt