From dc7cc4ce8fe2e7f39f2af7c96a1bbe916bba31d3 Mon Sep 17 00:00:00 2001 From: Andrew Stryker Date: Tue, 10 Oct 2023 19:28:18 -0700 Subject: [PATCH] Place directory making logic into recipes --- curate.mk | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/curate.mk b/curate.mk index 3b54af3..e314eb7 100644 --- a/curate.mk +++ b/curate.mk @@ -99,15 +99,13 @@ help: #> Display this help message # #-----------------------------------------------------------------------------# -${staging_section}: - @mkdir -p $@ - @echo "\t✓ Created staging space: $@" - -${templates_expanded}: ${staging_section}/%: %.m4 ${staging_section} ${all} +${templates_expanded}: ${staging_section}/%: %.m4 ${all} + @mkdir -p ${staging_section} @m4 --include=${MAKO_DIR} $< > $@ @echo "\t✓ Generated $@" -${gemtext_copied}: ${staging_section}/%: % ${staging_section} +${gemtext_copied}: ${staging_section}/%: % + @mkdir -p ${staging_section} @cat $< > $@ @echo "\t✓ Copied $@"