- commit
- d28c9abac6d177936e1bda3e9489573484eb4fe2
- parent
- 6144376bd1494d1b4c1c84b1f180379adc7ce40a
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-11-03 12:38
gitignore the complete build dir
Diffstat
M | .gitignore | 6 | +----- |
M | Makefile | 19 | +++++++++++-------- |
R | build/static/blogsearch.js -> static/blogsearch.js | 0 |
3 files changed, 12 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore
@@ -1,5 +1 @@1 -1 build/**/*.html2 -1 build/**/*.md3 -1 build/**/*.css4 -1 build/feed.xml5 -1 _content/index.md-1 1 build/
diff --git a/Makefile b/Makefile
@@ -1,10 +1,11 @@ 1 1 .POSIX: 2 2 PAGES := $(shell find _content -name 'index.md' | sed 's/^_content/build/;s/md$$/html/') 3 3 PAGES_MD := $(shell find _content -name 'index.md' | sed 's/^_content/build/') -1 4 STATIC := $(shell find static -type f | sed 's/^/build\//') 4 5 IMG := $(shell find _content -regex '.*\.\(png\|gif\|jpg\)$$' | sed 's/^_content/build/') 5 6 6 7 .PHONY: all7 -1 all: build/index.html $(PAGES) $(PAGES_MD) build/feed.xml build/static/style.css $(IMG)-1 8 all: build/index.html $(PAGES) $(PAGES_MD) build/feed.xml $(STATIC) build/static/style.css $(IMG) 8 9 9 10 .PHONY: push 10 11 push: all @@ -18,6 +19,10 @@ build/%.md: _content/%.md 18 19 @mkdir -p $$(dirname $@) 19 20 ln $< $@ 20 21 -1 22 build/index.md: _content/posts/*/index.md posts.sh -1 23 @mkdir -p $$(dirname $@) -1 24 ./posts.sh > $@ -1 25 21 26 build/%.png: _content/%.png 22 27 ln $< $@ 23 28 @@ -27,18 +32,16 @@ build/%.jpg: _content/%.jpg 27 32 build/%.gif: _content/%.gif 28 33 ln $< $@ 29 3430 -1 _content/index.md: _content/posts/*/index.md posts.sh31 -1 ./posts.sh > $@32 -133 35 build/feed.xml: build/index.md _templates/feed.xml34 -1 @mkdir -p $$(dirname $@)35 36 pandoc --template _templates/feed.xml -t html $< -o $@ 36 37 -1 38 build/static/%: static/% -1 39 @mkdir -p $$(dirname $@) -1 40 ln $< $@ -1 41 37 42 build/static/style.css: style/*.scss style/components/*.scss 38 43 npx sass --no-source-map style/style.scss $@ 39 44 40 45 .PHONY: clean 41 46 clean:42 -1 rm -f $(PAGES)43 -1 rm -f $(PAGES_MD)44 -1 rm -f _content/index.md-1 47 rm -rf build