aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-06-01 21:48:49 -0300
committerEuAndreh <eu@euandre.org>2022-06-01 21:48:49 -0300
commit904b6a94e6f632c55b8a7394de085b3973d907aa (patch)
treea532b3d2c9bc69a56aaddcee8862f375c80b65f0 /Makefile
parentMakefile: No need to rebuild public/ in "deploy" target (diff)
downloadeuandre.org-904b6a94e6f632c55b8a7394de085b3973d907aa.tar.gz
euandre.org-904b6a94e6f632c55b8a7394de085b3973d907aa.tar.xz
Makefile: Conditionally clean with dynamic.mk, only when generated.mk exists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e1891ae..7f9c93b 100644
--- a/Makefile
+++ b/Makefile
@@ -56,12 +56,13 @@ check:
dev-check: check
clean:
- $(MAKE) -f dynamic.mk clean
+ if [ -e generated.mk ]; then \
+ $(MAKE) -f dynamic.mk clean; \
+ fi
rm -rf \
public/ .jekyll-cache \
$(derived-assets) \
- src/content/
- # rm -f generated.mk
+ src/content/ generated.mk
JEKYLL = JEKYLL_ENV=production jekyll