INFORM  := ~/if/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)/*.inform)
I6S := $(patsubst %.inform,%.i6,$(SRCS))

all: $(TARGET)
	$(INBLORB) ButteredToast.blurb ButteredToast.gblorb

$(TARGET): $(I6S)
	$(INFORM6) -E2w~S~DG $<

%.i6: %.inform
	$(INFORM7) $(ARGS) $<

clean:
	- rm $(SRCDIR)/*.i6
	- rm *.gblorb
	- rm *.ulx