From 21a5d22a15947ef821f1fdeb6576f642d6f157c0 Mon Sep 17 00:00:00 2001 From: William Moore Date: Mon, 25 Jul 2022 16:55:02 -0500 Subject: [PATCH] Update to generically build and clean --- Makefile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 9e6b088..10db453 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ TARGETS := ButteredToast ButteredToast2 all: $(TARGETS) -ButteredToast: +$(TARGETS): %.inform $(eval PROJDIR := $(SRCDIR)/$@.inform) $(eval SRCS := $(wildcard $(PROJDIR)/Source/*.ni)) $(eval I6S := $(patsubst %.ni,%.i6,$(SRCS))) @@ -17,10 +17,14 @@ ButteredToast: $(INFORM6) -E2w~S~DG $(PROJDIR)/Build/auto.inf $(PROJDIR)/Build/output.ulx $(INBLORB) $(PROJDIR)/Release.blurb $(SRCDIR)/$@.gblorb -ButteredToast2: - $(eval PROJDIR := $(SRCDIR)/$@.inform) - $(eval SRCS := $(wildcard $(PROJDIR)/Source/*.ni)) - $(eval I6S := $(patsubst %.ni,%.i6,$(SRCS))) - $(INFORM7) -project "$(PROJDIR)" $(ARGS) - $(INFORM6) -E2w~S~DG $(PROJDIR)/Build/auto.inf $(PROJDIR)/Build/output.ulx - $(INBLORB) $(PROJDIR)/Release.blurb $(SRCDIR)/$@.gblorb +%.inform: + echo $@ + +clean_inform: + echo $(SRCDIR)/$(TARGET_NAME)/Build + + +clean: + $(foreach TARGET_NAME, $(TARGETS), - rm -rf $(SRCDIR)/$(TARGET_NAME).inform/Build $(SRCDIR)/$(TARGET_NAME).inform/Index $(SRCDIR)/$(TARGET_NAME).inform/*.plist $(SRCDIR)/$(TARGET_NAME).inform/*.iFiction $(SRCDIR)/$(TARGET_NAME).inform/*.blurb ) +# - rm -rf $(PROJDIR)/Build + - rm *.gblorb