2023-01-14 16:21:10 +01:00
|
|
|
.PHONY: all publish push assets clean serve
|
2020-08-28 14:05:05 +02:00
|
|
|
|
2022-02-21 20:24:55 +01:00
|
|
|
all: publish assets clean
|
2020-08-28 14:05:05 +02:00
|
|
|
|
2023-01-14 08:13:57 +01:00
|
|
|
OS := $(shell uname -s)
|
|
|
|
ARCH := $(shell uname -p)
|
|
|
|
|
|
|
|
ifeq ($(OS), Linux)
|
|
|
|
EMACS=emacs
|
|
|
|
endif
|
|
|
|
ifeq ($(OS),Darwin)
|
|
|
|
ifeq ($(ARCH), arm)
|
|
|
|
EMACS=/opt/homebrew/bin/emacs
|
|
|
|
else
|
|
|
|
EMACS=/usr/local/opt/emacs
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-08-28 14:05:05 +02:00
|
|
|
publish:
|
2023-01-14 08:13:57 +01:00
|
|
|
@EMACS --batch --no-init --load publish.el --funcall org-publish-all
|
2023-01-14 16:19:59 +01:00
|
|
|
sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/simulation-du-modele-de-solow/index.html
|
|
|
|
sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/simulation-du-modele-de-solow/index.html
|
|
|
|
sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/modele-de-solow/index.html
|
|
|
|
sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/modele-de-solow/index.html
|
|
|
|
sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/representer-graphiquement-une-serie-temporelle-du-pib/index.html
|
|
|
|
sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/representer-graphiquement-une-serie-temporelle-du-pib/index.html
|
2022-12-26 18:17:39 +01:00
|
|
|
sed -i '' -e 's/<pre class="src src-python">/<pre><code class="language-python">/g' ./output/posts/donnees-mankiw-romer-weil-1992/index.html
|
|
|
|
sed -i '' -e 's/<\/pre>/<\/code><\/pre>/g' ./output/posts/donnees-mankiw-romer-weil-1992/index.html
|
2020-08-28 14:05:05 +02:00
|
|
|
|
|
|
|
assets:
|
|
|
|
@rsync --recursive -avz assets/fonts output
|
|
|
|
@rsync --recursive -avz assets/fontawesome output
|
|
|
|
@rsync --recursive -avz assets/css output
|
2022-02-23 15:16:15 +01:00
|
|
|
@rsync --recursive -avz assets/highlight output
|
2020-08-28 14:05:05 +02:00
|
|
|
@rsync --recursive -avz assets/dynare output
|
|
|
|
@rsync --recursive -avz assets/papers output
|
|
|
|
@rsync --recursive -avz assets/thesis output
|
|
|
|
@rsync --recursive -avz assets/oldies output
|
|
|
|
@rsync assets/stepan.gpg-pub.asc output
|
2020-08-28 23:05:10 +02:00
|
|
|
@rsync assets/favicon.ico output
|
2020-08-28 15:12:30 +02:00
|
|
|
|
2022-02-21 20:24:55 +01:00
|
|
|
clean:
|
2022-08-29 15:57:56 +02:00
|
|
|
@rm -rf output/posts/.ltx
|
|
|
|
@rm -rf output/posts/representation-ma-du-processus-ar2/.ltx
|
|
|
|
@rm -rf output/posts/simulation-du-modele-de-solow/.ltx
|
|
|
|
@rm -rf output/posts/modele-de-solow/.ltx
|
2022-10-09 22:47:22 +02:00
|
|
|
@rm -rf output/posts/fonction-de-production-ces/.ltx
|
2022-12-26 18:17:39 +01:00
|
|
|
@rm -rf output/posts/donnees-mankiw-romer-weil-1992/.ltx
|
2022-02-21 20:24:55 +01:00
|
|
|
|
|
|
|
push: publish assets clean
|
2024-03-21 11:11:26 +01:00
|
|
|
@rsync --recursive -avz --progress output/* puck:/home/www/stephane-adjemian.fr
|
2023-01-14 16:21:10 +01:00
|
|
|
|
|
|
|
serve: publish assets clean
|
|
|
|
@cd output; python3 -m http.server
|