add clean to makefile
This commit is contained in:
parent
0a1f47bc13
commit
92ce17353f
1 changed files with 16 additions and 10 deletions
26
Makefile
26
Makefile
|
@ -4,13 +4,19 @@
|
||||||
quickstart:
|
quickstart:
|
||||||
# git clone https://github.com/weitblick/epub.git
|
# git clone https://github.com/weitblick/epub.git
|
||||||
# cd epub
|
# cd epub
|
||||||
cd exampleSite
|
mkdir -p exampleSite/themes
|
||||||
mkdir themes
|
cd exampleSite/themes; git clone https://github.com/weitblick/epub.git
|
||||||
cd themes
|
cd exampleSite/themes/epub; rm -rf .git
|
||||||
git clone https://github.com/weitblick/epub.git
|
cd exampleSite/themes/epub; rm -rf exampleSite # remove the example site in the theme
|
||||||
cd epub
|
cd exampleSite; hugo
|
||||||
rm -rf .git
|
cd exampleSite; bash ./deploy.sh
|
||||||
rm -rf exampleSite # remove the example site in the theme
|
echo "Your example epub is generated at"
|
||||||
cd ../..
|
echo
|
||||||
hugo
|
echo "exampleSite/ebook.epub"
|
||||||
bash ./deploy.sh
|
echo
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf exexampleSite/themes
|
||||||
|
rm -rf exexampleSite/*.epub
|
Loading…
Reference in a new issue