Improve Makefile with python module option

This commit is contained in:
Lilian Roller 2020-02-07 14:52:28 +01:00
parent e52bfd664e
commit 98bf3abdbf
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B

View file

@ -20,10 +20,18 @@ install:
sudo pip3 install lektor --upgrade sudo pip3 install lektor --upgrade
build: build:
python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS) if python3 -m lektor --version 2>/dev/null; then
python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS)
else
lektor build $(LEKTOR_PLUGIN_FLAGS)
fi
server: server:
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS) if python3 -m lektor --version 2>/dev/null; then
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
else
lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
fi
deploy: deploy:
lektor clean --yes lektor clean --yes