From 904b6a94e6f632c55b8a7394de085b3973d907aa Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 1 Jun 2022 21:48:49 -0300 Subject: Makefile: Conditionally clean with dynamic.mk, only when generated.mk exists --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3