summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-09 00:06:31 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-03-09 00:06:31 +0100
commit0cca61da9934fde1a30300e921335e754fc9716f (patch)
tree9501af5c96bfad25467027dcf912cde2e4b2da19
parentfaba503e2cab1c61bd922ac92b6cc99001fa5d3f (diff)
downloadquatuorbellefeuille.com-0cca61da9934fde1a30300e921335e754fc9716f.tar.xz
Fix parallel build
Also make order-only prerequisites a bit cleaner. I have the faintest feeling I'm inching ever closer to 𝕰𝕷𝕯𝕽𝕴𝕿𝕮𝕳 𝕸𝕬𝕶𝕰(1) 𝕸𝕬𝕯𝕹𝕰𝕾𝕾, buuuut it'd be great if it worked though…
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 833931f..66f3da1 100644
--- a/Makefile
+++ b/Makefile
@@ -28,19 +28,24 @@ site: $(pages) $(members_pages) $(resources) $(images) $(stylesheets)
$(OUTDIR) $(images_folders) $(stylesheets_folders):
mkdir $@
-$(resources): $(OUTDIR)/%: % | $(OUTDIR)
+.SECONDEXPANSION:
+$(resources): $(OUTDIR)/%: % | $$(@D)
cp $< $@
-$(images): $(OUTDIR)/%: % | $(images_folders)
+.SECONDEXPANSION:
+$(images): $(OUTDIR)/%: % | $$(@D)
cp $< $@
-$(stylesheets): $(OUTDIR)/%: % | $(stylesheets_folders)
+.SECONDEXPANSION:
+$(stylesheets): $(OUTDIR)/%: % | $$(@D)
cp $< $@
-$(pages): $(OUTDIR)/%.html: %.html %.sh template.html | $(OUTDIR)
+.SECONDEXPANSION:
+$(pages): $(OUTDIR)/%.html: %.html %.sh template.html | $$(@D)
./build.sh $< $*.sh $@
-$(members_pages): $(OUTDIR)/%.html: %.membre.in build-member.sh template.html | $(OUTDIR)
+.SECONDEXPANSION:
+$(members_pages): $(OUTDIR)/%.html: %.membre.in build-member.sh template.html | $$(@D)
./build-member.sh $< $@
$(OUTDIR)/quatuor.html: quatuor.md