2019-02-12 17:45:44 +01:00
|
|
|
LEKTOR_SERVER_FLAGS=-h 127.0.0.1
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
sass:
|
2019-02-15 20:58:16 +01:00
|
|
|
lektor clean --yes
|
2019-06-20 14:28:05 +02:00
|
|
|
lektor server -f jsminify
|
2019-02-12 17:45:44 +01:00
|
|
|
|
2019-06-20 14:28:05 +02:00
|
|
|
.ONESHELL:
|
2019-02-12 17:45:44 +01:00
|
|
|
install:
|
2019-06-20 14:28:05 +02:00
|
|
|
if hash apt-get 2>/dev/null; then
|
|
|
|
sudo apt-get update -qq >/dev/null && sudo apt-get install -qq apt-utils imagemagick python3-pip python3-setuptools gcc
|
|
|
|
elif hash pacman 2>/dev/null; then
|
|
|
|
sudo pacman -Syu imagemagick python-pip glibc lib32-glibc gcc --noconfirm
|
|
|
|
elif hash dnf 2>/dev/null; then
|
|
|
|
sudo dnf install -y ImageMagick python3-pip gcc
|
|
|
|
else
|
|
|
|
echo -e "Please install Imagemagick, python3-pip and gcc"
|
|
|
|
fi
|
2019-03-06 13:25:48 +01:00
|
|
|
pip install lektor --user
|
2019-06-20 14:28:05 +02:00
|
|
|
# pip3 install wheel --user
|
|
|
|
lektor plugin flush-cache
|
2019-03-11 13:16:01 +01:00
|
|
|
|
2019-04-03 19:26:41 +02:00
|
|
|
install-sassc:
|
2019-06-20 14:28:05 +02:00
|
|
|
lektor plugin flush-cache
|
|
|
|
lektor clean --yes
|
|
|
|
lektor build -f jsminify
|
2019-02-12 17:45:44 +01:00
|
|
|
|
2019-06-20 14:28:05 +02:00
|
|
|
build:
|
|
|
|
lektor clean --yes
|
|
|
|
lektor build -f jsminify
|
2019-02-12 17:45:44 +01:00
|
|
|
|
|
|
|
server:
|
|
|
|
lektor server $(LEKTOR_SERVER_FLAGS)
|