Improve Makefile with python module option
This commit is contained in:
parent
e52bfd664e
commit
98bf3abdbf
1 changed files with 10 additions and 2 deletions
12
Makefile
12
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue