32 lines
905 B
Makefile
32 lines
905 B
Makefile
LEKTOR_SERVER_FLAGS=-h 127.0.0.1
|
|
|
|
all: build
|
|
|
|
sass:
|
|
sass -t compressed ./assets/sass/main.scss ./assets/css/main.min.css
|
|
sass -t compressed ./assets/sass/ie9.scss ./assets/css/ie9.min.css
|
|
rm ./assets/css/main.min.css.map
|
|
rm ./assets/css/ie9.min.css.map
|
|
lektor clean --yes
|
|
lektor build
|
|
|
|
sass-uncompressed:
|
|
sass ./assets/sass/main.scss ./assets/css/main.css
|
|
sass ./assets/sass/ie9.scss ./assets/css/ie9.css
|
|
rm ./assets/css/main.css.map
|
|
rm ./assets/css/ie9.css.map
|
|
lektor clean --yes
|
|
lektor build
|
|
|
|
install:
|
|
pip install lektor --user
|
|
gem install sass
|
|
if hash apt 2>/dev/null; then sudo apt update; sudo apt install imagemagick -y; elif hash pacman 2>/dev/null; then sudo pacman -Sy imagemagick --noconfirm; elif hash dnf 2>/dev/null; then sudo dnf install -y imagemagick; else echo -e "Please install Imagemagick"; fi
|
|
|
|
|
|
build: sass
|
|
lektor build
|
|
|
|
server:
|
|
lektor server $(LEKTOR_SERVER_FLAGS)
|
|
|