volumetric-regimes-book/command-line/Makefile

43 lines
1.1 KiB
Makefile
Raw Normal View History

STYLESHEET:=volumetric-regimes.css
MINIFIEDSHEET:= $(shell cat ./css/print.min.css)
.PHONY: css
2021-06-16 16:46:25 +02:00
all: run
install:
python3 -m venv venv
./venv/bin/pip3 install etherpump
./venv/bin/etherpump init
2021-06-16 16:46:25 +02:00
run:
python3 -m http.server
update: wiki css
wiki:
# ---
# update the materials from the wiki, save it as Unfolded.html
2021-06-16 16:46:25 +02:00
python3 update.py
@echo "Pulling updates from the wiki: Unfolded (wiki) --> Unfolded.html (file)"
css:
# ---
# sync the CSS on the pad with the local print.css file
./venv/bin/etherpump gettext $(STYLESHEET) > ./css/print.css
@echo "Saving CSS: $(STYLESHEET) (pad) --> print.css (file)"
# --- does not work :(
# csspad:
# @echo "Generating a minified CSS: print.css --> print.min.css"
# uglifycss css/print.css > css/print.min.css
# @echo "Saving the local CSS sheet to the pad: print.css (file) --> $(STYLESHEET) (pad)"
# @echo "$(MINIFIEDSHEET)"
# ./venv/bin/etherpump settext --limit $(STYLESHEET) < $(MINIFIEDSHEET)
2021-06-16 16:46:25 +02:00
upload:
scp -r Unfolded.html css js fonts varia:public_html/volumetric-regimes/
uploadimages:
scp -r images varia:public_html/volumetric-regimes/