add dist target

This commit is contained in:
filifa
2025-09-18 22:05:26 -04:00
parent a399ec9454
commit 1e85e7e768
2 changed files with 15 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: all clean
.PHONY: all clean dist
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
@@ -16,3 +16,16 @@ html/%.html: notebooks/%.ipynb | html
html:
mkdir -p html
dist: eulerbooks.tar.gz
eulerbooks.tar.gz: $(HTMLS) Makefile README.md LICENSE
rm -f $@
mkdir eulerbooks
cp -r html eulerbooks
mkdir eulerbooks/notebooks
cp notebooks/*.ipynb eulerbooks/notebooks
cp -r notebooks/txt eulerbooks/notebooks
cp LICENSE Makefile README.md eulerbooks
tar -czf $@ eulerbooks
rm -r eulerbooks