Place directory making logic into recipes

This commit is contained in:
Andrew Stryker 2023-10-10 19:28:18 -07:00
parent 9aeee46e42
commit dc7cc4ce8f
1 changed files with 4 additions and 6 deletions

View File

@ -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 $@"