summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2024-10-06 10:58:02 +0200
committeruvok cheetah2024-10-06 10:58:02 +0200
commit7a553b538b44e86d3ef444eaf1c0f5c9068a75bd (patch)
tree30d41bd62e4ba448e8b3ddaae7ce163d233ca61d
parenta6308a769b90f506fd1281e805a2bdf9a8706282 (diff)
Polish Makefile to clean properly.
Also, IPFS makes relative URLs.
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5102e6d..8971d98 100644
--- a/Makefile
+++ b/Makefile
@@ -1,21 +1,23 @@
all: development
-production:
+production: clean
JEKYLL_ENV=production bundle exec jekyll build
-development:
+development: clean
JEKYLL_ENV=development bundle exec jekyll build
+.PHONY: clean
clean:
bundle exec jekyll clean
+ rm -f ipfs.tar
make_push_to_server: production
rsync -av _site/ w019f723.kasserver.com:/www/htdocs/w019f723/blog.uvokchee.de/
-watch:
+watch: clean
bundle exec jekyll serve -l --drafts
-ipfs:
- rm -f ipfs.tar
+# brute-force making URLs relative for IPFS
+ipfs: clean
JEKYLL_ENV=ipfs bundle exec jekyll build
- cd _site && cp all.html index.html && tar cvf ../ipfs.tar $$(grep -L redirect *.html) assets index.html
+ cd _site && cp all.html index.html && rm google* && sed -i -e 's|="/|="|g' *.html && tar cvf ../ipfs.tar $$(grep -L redirect *.html) assets index.html