add dist target
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
.ipynb_checkpoints/
|
.ipynb_checkpoints/
|
||||||
html/
|
html/
|
||||||
|
eulerbooks.tar.gz
|
||||||
|
|||||||
15
Makefile
15
Makefile
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all clean
|
.PHONY: all clean dist
|
||||||
|
|
||||||
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
|
HTMLS = $(patsubst notebooks/%.ipynb,html/%.html,$(wildcard notebooks/*.ipynb))
|
||||||
|
|
||||||
@@ -16,3 +16,16 @@ html/%.html: notebooks/%.ipynb | html
|
|||||||
|
|
||||||
html:
|
html:
|
||||||
mkdir -p 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
|
||||||
|
|||||||
Reference in New Issue
Block a user