Skip to content

Commit 74898df

Browse files
committed
change zip make target
Create in build: - a zip archive of the html file - a copy of the pdf - a zip archive of the source
1 parent c18560a commit 74898df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ pdf: latex
103103
cp build/latex/ScipyLectures.pdf ScipyLectures-simple.pdf
104104
cp build/latex/ScipyLectures-nup.pdf ScipyLectures.pdf
105105

106-
zip: html pdf
106+
zip: clean html pdf
107107
mkdir -p build/scipy_lecture_notes ;
108+
cp ScipyLectures.pdf ScipyLectures-simple.pdf build/html/_downloads/
108109
cp -r build/html build/scipy_lecture_notes ;
109110
cp -r data build/scipy_lecture_notes ;
110-
cp ScipyLectures.pdf build/scipy_lecture_notes;
111+
cp ScipyLectures.pdf build/ ;
111112
zip -r build/scipy_lecture_notes.zip build/scipy_lecture_notes
113+
git archive -o build/scipy_lecture_notes-source.zip --prefix scipy_lecture_notes-source/ HEAD
112114

113115
install: cleandoctrees html pdf
114116
rm -rf build/scipy-lectures.github.com

0 commit comments

Comments
 (0)