Skip to content

Commit 58c11ca

Browse files
committed
Check that build link is present otherwise abort.
1 parent f20f0ce commit 58c11ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

locale/GNUmakefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ PACKAGES=$(shell find ../roundup ../share/roundup/templates -name '*.py' \
1515
SOURCES=$(PACKAGES:=/*.py)
1616
PO_FILES=$(wildcard *.po)
1717
MO_FILES=$(PO_FILES:.po=.mo)
18-
RUN_PYTHON=PYTHONPATH=../build/lib $(PYTHON) -O
18+
PYTHON_BUILD=../build/lib
19+
RUN_PYTHON=PYTHONPATH=$(PYTHON_BUILD) $(PYTHON) -O
1920

2021
all: dist
2122

@@ -36,7 +37,9 @@ dist:
3637
done
3738

3839
template:
40+
test -d $(PYTHON_BUILD) || (echo "Missing build directory. ln -s lib to build library"; exit 1)
3941
${XPOT} -n -o $(TEMPLATE) $(SOURCES)
42+
4043
${RUN_PYTHON} ../roundup/cgi/TAL/talgettext.py -u $(TEMPLATE) \
4144
../share/roundup/templates/classic/html/*.html \
4245
../share/roundup/templates/minimal/html/*.html

0 commit comments

Comments
 (0)