Make paths safe in makefile
This commit is contained in:
parent
bce561b11c
commit
09521f056b
9
Makefile
9
Makefile
@ -1,7 +1,7 @@
|
||||
DOCKER_TAG ?= beets-dev
|
||||
SOURCE_DIR ?= $(HOME)/Music/Incoming
|
||||
TARGET_DIR ?= $(HOME)/Music/Library
|
||||
BEET_CMD := BEETSDIR=. ./beets_env/bin/beet -d $(TARGET_DIR)
|
||||
BEET_CMD := BEETSDIR=. ./beets_env/bin/beet -d "$(TARGET_DIR)"
|
||||
|
||||
test:
|
||||
echo $(SOURCE_DIR)
|
||||
@ -16,11 +16,14 @@ beets_env:
|
||||
|
||||
# Re-runs an import on the existing library
|
||||
reimport: beets_env
|
||||
$(BEET_CMD) import $(TARGET_DIR)
|
||||
$(BEET_CMD) import "$(TARGET_DIR)"
|
||||
|
||||
reimport-select: beets_env
|
||||
$(BEET_CMD) import "$(SOURCE_DIR)"
|
||||
|
||||
# Incrementally imports and copies from from source into target directory
|
||||
import: beets_env
|
||||
$(BEET_CMD) import -i -c $(SOURCE_DIR)
|
||||
$(BEET_CMD) import -i -c "$(SOURCE_DIR)"
|
||||
|
||||
# List all duplicates
|
||||
duplicates: beets_env
|
||||
|
Loading…
Reference in New Issue
Block a user