This commit is contained in:
Yann Esposito (Yogsototh) 2021-04-26 22:53:10 +02:00
parent 247c276788
commit b74e8e401a
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
1 changed files with 35 additions and 0 deletions

35
Makefile Normal file
View File

@ -0,0 +1,35 @@
# Generate my website out of org-mode/gemini files
#
# maybe check https://themattchan.com/blog/2017-02-28-make-site-generator.html
source := src
output := _site
sources := $(shell find $(source) -name '*.org')
htmls := $(patsubst %.org,%.html,$(subst $(source),$(output),$(sources)))
assetssources := $(shell find $(source) -type f ! -path '*.org')
assets := $(subst $(source),$(output),$(assetssources))
all: $(htmls) $(assets)
$(output)/%.css: $(source)/%.css
mkdir -p $(shell dirname $@)
cp $< $@
# # recipe for converting an org-mode file into html using Pandoc
# $(output)/%.html: $(source)/%.org
# mkdir -p $(shell dirname $@)
# pandoc \
# --from org \
# --to html5 \
# --css=/css/y.css \
# --toc \
# -s \
# --standalone \
# $< \
# -o $@
.PHONY: clean
clean:
rm -rf $(output)/*