Make paths safe in makefile

This commit is contained in:
IamTheFij 2024-01-18 18:38:43 +00:00
parent bce561b11c
commit 09521f056b
1 changed files with 6 additions and 3 deletions

View File

@ -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