From ba22a991c6863bc085450ae94e204d1d9fe12bbb Mon Sep 17 00:00:00 2001 From: Philipp Joram Date: Thu, 16 Jul 2015 18:12:21 +0200 Subject: [PATCH] Create path to config-file if it does not exist. See issue #45. --- makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index d3ec217..41c82d0 100644 --- a/makefile +++ b/makefile @@ -13,7 +13,7 @@ INSTALL_BIN = $(INSTALL) -D -m 755 PREFIX ?= /usr/local BINDIR = $(DESTDIR)/$(PREFIX)/bin -CONFIGDIR = $(XDG_CONFIG_HOME)/cava/config +CONFIGDIR = $(XDG_CONFIG_HOME)/cava debug ?= 0 @@ -30,11 +30,12 @@ iniparser: check-env: ifndef XDG_CONFIG_HOME - CONFIGDIR = $(HOME)/.config/cava/config + CONFIGDIR = $(HOME)/.config/cava endif copyconf: - cp -n example_files/config $(CONFIGDIR) + mkdir -p $(CONFIGDIR) + cp -n example_files/config $(CONFIGDIR)/config install: all $(INSTALL_BIN) cava $(BINDIR)/cava