Skip to content

Commit

Permalink
Add Makefile with sync designation
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Feb 8, 2024
1 parent f06b4ad commit eb9cec7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Define the source directory for assets
SRC_DIR := lib

# Define the destination directories for different languages
PYTHON_DEST := python/countdown/assets
R_DEST := r/inst/countdown
QUARTO_DEST := quarto/_extensions/countdown/assets

# Set the default target to sync
.DEFAULT_GOAL := sync

# Define the sync target
sync: sync-python sync-r sync-quarto

# Rule to copy assets to Python directory
sync-python:
@echo "Syncing assets to Python directory..."
mkdir -p $(PYTHON_DEST)
cp -r $(SRC_DIR)/* $(PYTHON_DEST)

# Rule to copy assets to R directory
sync-r:
@echo "Syncing assets to R directory..."
mkdir -p $(R_DEST)
cp -r $(SRC_DIR)/* $(R_DEST)

# Rule to copy assets to Quarto directory
sync-quarto:
@echo "Syncing assets to Quarto directory..."
mkdir -p $(QUARTO_DEST)
cp -r $(SRC_DIR)/* $(QUARTO_DEST)

0 comments on commit eb9cec7

Please sign in to comment.