2019-02-12 17:45:44 +01:00
|
|
|
LEKTOR_SERVER_FLAGS=-h 127.0.0.1
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
sass:
|
2019-04-03 19:26:41 +02:00
|
|
|
./sassc/bin/sassc -t compressed ./assets/sass/main.scss ./assets/css/main.min.css
|
|
|
|
./sassc/bin/sassc -t compressed ./assets/sass/ie9.scss ./assets/css/ie9.min.css
|
2019-02-15 20:58:16 +01:00
|
|
|
lektor clean --yes
|
|
|
|
lektor build
|
2019-02-15 11:39:34 +01:00
|
|
|
|
|
|
|
sass-uncompressed:
|
2019-04-03 19:26:41 +02:00
|
|
|
./sassc/bin/sassc ./assets/sass/main.scss ./assets/css/main.css
|
|
|
|
./sassc/bin/sassc ./assets/sass/ie9.scss ./assets/css/ie9.css
|
2019-02-15 20:58:16 +01:00
|
|
|
lektor clean --yes
|
|
|
|
lektor build
|
2019-02-12 17:45:44 +01:00
|
|
|
|
|
|
|
install:
|
2019-04-25 21:07:34 +02:00
|
|
|
if hash apt 2>/dev/null; then sudo apt update; sudo apt install imagemagick python3 python3-pip -y; elif hash pacman 2>/dev/null; then sudo pacman -Sy graphicsmagick glibc lib32-glibc python python-pip --noconfirm; elif hash dnf 2>/dev/null; then sudo dnf install -y ImageMagick python3 python3-pip; else echo -e "Please install Imagemagick, Python3 and Pip!"; fi
|
2019-03-06 13:25:48 +01:00
|
|
|
pip install lektor --user
|
2019-04-03 19:26:41 +02:00
|
|
|
make install-sassc
|
2019-03-11 13:16:01 +01:00
|
|
|
|
2019-04-03 19:26:41 +02:00
|
|
|
install-sassc:
|
2019-06-19 16:30:27 +02:00
|
|
|
if [ ! -d './sassc' ]; then git clone https://github.com/sass/sassc.git sassc; cd sassc; git reset tags/3.5.0; cd ..; . sassc/script/bootstrap ; make -C sassc -j4 ; fi
|
2019-02-12 17:45:44 +01:00
|
|
|
|
|
|
|
build: sass
|
|
|
|
lektor build
|
|
|
|
|
|
|
|
server:
|
|
|
|
lektor server $(LEKTOR_SERVER_FLAGS)
|
|
|
|
|