From 7ba4a5c4162fcdef926afa69e6515aa5f0a8a04c Mon Sep 17 00:00:00 2001 From: William Moore Date: Tue, 5 Jul 2022 06:25:37 -0500 Subject: [PATCH] Update to use Makefile --- .gitignore | 5 ++++- Makefile | 25 +++++++++++++++++++++ ButteredToast1.ni => src/ButteredToast1.inf | 0 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 Makefile rename ButteredToast1.ni => src/ButteredToast1.inf (100%) diff --git a/.gitignore b/.gitignore index 1a56c0a..7194abc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ *.i6 *.zblorb *.z8 -.DS_Store \ No newline at end of file +.DS_Store +build/ +dist/ +.vscode/ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..642713e --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +INFORM := ../inform7/inform +INFORM7 := $(INFORM)/inform7/Tangled/inform7 +INFORM6 := $(INFORM)/inform6/Tangled/inform6 +INBLORB := $(INFORM)/inblorb/Tangled/inblorb +BUILDDIR := build +DISTDIR := dist +SRCDIR := src +TARGET := ButteredToast1 + +SRCS := $(wildcard $(SRCDIR)/*.inf) +I6S := $(patsubst %.inf,%.i6,$(SRCS)) + +all: $(TARGET) + $(INBLORB) ButteredToast.blub ButteredToast.zblorb + +$(TARGET): $(I6S) + $(INFORM6) -E2w~S~Dv8 $< + +%.i6: %.inf + $(INFORM7) -format=Inform6/16d $< + +clean: + rm $(SRCDIR)/*.i6 + rm *.zblorb + rm *.z8 diff --git a/ButteredToast1.ni b/src/ButteredToast1.inf similarity index 100% rename from ButteredToast1.ni rename to src/ButteredToast1.inf