formations/python-initiation/Makefile

31 lines
490 B
Makefile
Raw Normal View History

2021-02-01 07:51:10 +00:00
.PHONY: static
static: output/index.html
2020-02-21 00:16:24 +00:00
.PHONY: help
help:
@echo "Usage:"
@echo " make static"
@echo " make test"
@echo " make rsync"
2020-02-21 00:16:24 +00:00
@echo " make clean"
.PHONY: check
test:
python test.py *.md
output/index.html: initiation.md
2021-02-01 07:51:10 +00:00
mdtoreveal $< --output $@
2020-02-21 00:16:24 +00:00
cp -a static output
.PHONY: rsync
rsync: static
2021-05-31 11:54:19 +00:00
rsync -vah --delete output/ mdk_fr@mdk.fr:/var/www/mdk.fr/python-initiation/
2020-02-21 00:16:24 +00:00
.PHONY: clean
clean:
rm -f $(HTML)
.PHONY: serve
serve:
python3 -m http.server -d output/