volumetric-regimes-book/command-line/Makefile
2022-04-22 14:49:55 +02:00

35 lines
1020 B
Makefile

all: run
install:
python3 -m venv venv
./venv/bin/pip3 install etherpump
./venv/bin/etherpump init
run:
python3 -m http.server
update: wiki
wiki:
# ---
# update the materials from the wiki, save it as Unfolded.html
python3 update.py
@echo "Pulling updates from the wiki: Unfolded (wiki) --> Unfolded.html (file)"
multi:
# ---
# multistamp Multi Remix on top of the pdf
@pdfunite multi-remix/multi-remix.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix.pdf multi-remix/multi-remix-empty.pdf multi-remix/multi-remix-stamp.pdf
@pdftk Unfolded.pdf multistamp multi-remix/multi-remix-stamp.pdf output Unfolded-with-Multi.pdf
upload:
scp -r Unfolded.html css js fonts varia:public_html/volumetric-regimes/
uploadpdf:
resample Unfolded-with-Multi.pdf 150
scp Unfolded-with-Multi-resampled.pdf varia:public_html/volumetric-regimes/Unfolded.pdf
@echo "Uploaded to: https://vvvvvvaria.org/~mb/volumetric-regimes/Unfolded.pdf"
uploadimages:
scp -r images varia:public_html/volumetric-regimes/