Improve Makefile with python module option
This commit is contained in:
parent
e52bfd664e
commit
98bf3abdbf
1 changed files with 10 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -20,10 +20,18 @@ install:
|
|||
sudo pip3 install lektor --upgrade
|
||||
|
||||
build:
|
||||
if python3 -m lektor --version 2>/dev/null; then
|
||||
python3 -m lektor build $(LEKTOR_PLUGIN_FLAGS)
|
||||
else
|
||||
lektor build $(LEKTOR_PLUGIN_FLAGS)
|
||||
fi
|
||||
|
||||
server:
|
||||
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:
|
||||
lektor clean --yes
|
||||
|
|
Loading…
Reference in a new issue