Update to use Makefile

This commit is contained in:
William Moore 2022-07-05 06:25:37 -05:00
parent d123a65c8c
commit 7ba4a5c416
3 changed files with 29 additions and 1 deletions

5
.gitignore vendored
View File

@ -1,4 +1,7 @@
*.i6
*.zblorb
*.z8
.DS_Store
.DS_Store
build/
dist/
.vscode/

25
Makefile Normal file
View File

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