1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Makefile: On Windows, use ; as path separator instead of :

This commit is contained in:
Juhani Numminen 2019-07-18 20:32:54 +03:00 committed by Shlomi Fish
parent acbf11de31
commit 52eeb40942

View file

@ -1,6 +1,11 @@
# Makefile for PySolFC
export PYTHONPATH := $(PYTHONPATH):$(CURDIR)
ifeq ($(OS),Windows_NT)
path_sep = ;
else
path_sep = :
endif
export PYTHONPATH := $(PYTHONPATH)$(path_sep)$(CURDIR)
.PHONY: all install dist rpm all_games_html rules pot mo pretest test runtest
@ -47,11 +52,11 @@ pretest:
rm -f tests/individually-importing/*.py # To avoid stray files
python3 scripts/gen_individual_importing_tests.py
TEST_ENV_PATH = $(CURDIR):$(CURDIR)/tests/lib
TEST_ENV_PATH = $(CURDIR)$(path_sep)$(CURDIR)/tests/lib
TEST_FILES = tests/style/*.t tests/unit-generated/*.py tests/individually-importing/*.py
test runtest: export PYTHONPATH := $(PYTHONPATH):$(TEST_ENV_PATH)
test runtest: export PERL5LIB := $(PERL5LIB):$(TEST_ENV_PATH)
test runtest: export PYTHONPATH := $(PYTHONPATH)$(path_sep)$(TEST_ENV_PATH)
test runtest: export PERL5LIB := $(PERL5LIB)$(path_sep)$(TEST_ENV_PATH)
test: pretest
prove $(TEST_FILES)