Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09f87af

Browse files
committed
fix(make): always link the build target
1 parent 0d02495 commit 09f87af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ build: $(VENV)/bin/sphinx-build $(VENV)/bin/blurb clone ## Automatically build a
7272
@mkdir -p $(LC_MESSAGES)
7373
@$(eval dir=`echo $(target) | xargs -n1 dirname`) ## Get dir
7474
# If the build target is in under directory
75-
# We should make direcotry in $(LC_MESSAGES) and link the file.
75+
# We should make direcotry in $(LC_MESSAGES).
7676
@if [ $(dir) != "." ]; then \
7777
echo "mkdir -p $(LC_MESSAGES)/$(dir)"; \
7878
mkdir -p $(LC_MESSAGES)/$(dir); \
79-
echo "ln -f ./$(target) $(LC_MESSAGES)/$(target)"; \
80-
ln -f ./$(target) $(LC_MESSAGES)/$(target); \
8179
fi
80+
@ln -f ./$(target) $(LC_MESSAGES)/$(target)
8281
# Build
8382
@echo "----"
8483
@. $(VENV)/bin/activate; $(MAKE) -C $(CPYTHON_CLONE)/Doc/ SPHINXOPTS='-j$(JOBS) -D language=$(LANGUAGE) -D locale_dirs=locales -D gettext_compact=0' SOURCES='$(basename $(target)).rst' html

0 commit comments

Comments
 (0)