From 92ce17353f0333d765e6217ab15d44873e683022 Mon Sep 17 00:00:00 2001 From: Gregor von Laszewski Date: Wed, 10 Feb 2021 11:34:47 -0500 Subject: [PATCH 1/3] add clean to makefile --- Makefile | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 7e4f156..b90490a 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,19 @@ quickstart: # git clone https://github.com/weitblick/epub.git # cd epub - cd exampleSite - mkdir themes - cd themes - git clone https://github.com/weitblick/epub.git - cd epub - rm -rf .git - rm -rf exampleSite # remove the example site in the theme - cd ../.. - hugo - bash ./deploy.sh + mkdir -p exampleSite/themes + cd exampleSite/themes; git clone https://github.com/weitblick/epub.git + cd exampleSite/themes/epub; rm -rf .git + cd exampleSite/themes/epub; rm -rf exampleSite # remove the example site in the theme + cd exampleSite; hugo + cd exampleSite; bash ./deploy.sh + echo "Your example epub is generated at" + echo + echo "exampleSite/ebook.epub" + echo + + + +clean: + rm -rf exexampleSite/themes + rm -rf exexampleSite/*.epub \ No newline at end of file From 42c2c003748a327ccda161e4301d4ca2caf34f45 Mon Sep 17 00:00:00 2001 From: Gregor von Laszewski Date: Wed, 10 Feb 2021 11:38:14 -0500 Subject: [PATCH 2/3] use path in makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b90490a..41dedf2 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,14 @@ quickstart: # git clone https://github.com/weitblick/epub.git # cd epub mkdir -p exampleSite/themes + cd exampleSite/themes; git clone https://github.com/weitblick/epub.git - cd exampleSite/themes/epub; rm -rf .git - cd exampleSite/themes/epub; rm -rf exampleSite # remove the example site in the theme + rm -rf exampleSite/themes/epub/.git + rm -rf exampleSite/themes/epub/exampleSite + cd exampleSite; hugo cd exampleSite; bash ./deploy.sh + echo "Your example epub is generated at" echo echo "exampleSite/ebook.epub" From 250c1f474d34ebf4e31d5087d32e188a0749165a Mon Sep 17 00:00:00 2001 From: Gregor von Laszewski Date: Wed, 10 Feb 2021 11:47:33 -0500 Subject: [PATCH 3/3] added a make clean and fixed the makefile lines to use the proper directry --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 41dedf2..fb9c119 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,6 @@ quickstart: echo - clean: - rm -rf exexampleSite/themes - rm -rf exexampleSite/*.epub \ No newline at end of file + rm -rf exampleSite/themes + rm -rf exampleSite/*.epub \ No newline at end of file