From 836b00ef3f7dc6526e7ac432084d3885504c1cf5 Mon Sep 17 00:00:00 2001
From: Andreas Rossberg
Date: Fri, 13 Sep 2024 16:01:16 +0200
Subject: [PATCH] Make builds of old spec versions available
---
document/Makefile | 4 ++--
document/index.html | 9 +++++++++
document/versions/Makefile | 14 ++++++++++++++
document/versions/core/WebAssembly-1.0.pdf | Bin 0 -> 1161150 bytes
document/versions/core/WebAssembly-2.0.pdf | Bin 0 -> 1504529 bytes
.../versions/core/WebAssembly-3.0-draft.pdf | Bin 0 -> 2196704 bytes
6 files changed, 25 insertions(+), 2 deletions(-)
create mode 100644 document/versions/Makefile
create mode 100644 document/versions/core/WebAssembly-1.0.pdf
create mode 100644 document/versions/core/WebAssembly-2.0.pdf
create mode 100644 document/versions/core/WebAssembly-3.0-draft.pdf
diff --git a/document/Makefile b/document/Makefile
index 50cb081d77..ed1b7583b5 100644
--- a/document/Makefile
+++ b/document/Makefile
@@ -1,4 +1,4 @@
-DIRS = js-api web-api core
+DIRS = js-api web-api core versions
FILES = index.html
BUILDDIR = _build
TAR = tar
@@ -60,7 +60,7 @@ $(DIRS:%=build-%): build-%:
(cd $(@:build-%=%); make BUILDDIR=$(BUILDDIR) all)
.PHONY: $(DIRS:%=dir-%)
-$(DIRS:%=dir-%): dir-%:
+$(DIRS:%=dir-%): dir-%: $(BUILDDIR)
mkdir -p $(BUILDDIR)/$(@:dir-%=%)
rm -rf $(BUILDDIR)/$(@:dir-%=%)/*
cp -R $(@:dir-%=%)/$(BUILDDIR)/html/* $(BUILDDIR)/$(@:dir-%=%)/
diff --git a/document/index.html b/document/index.html
index 37eed9762e..6a6508347f 100644
--- a/document/index.html
+++ b/document/index.html
@@ -67,6 +67,15 @@ Embedder specifications
here.
+
+All versions
+
+
+