Update to generically build and clean
This commit is contained in:
parent
248463f2a8
commit
21a5d22a15
20
Makefile
20
Makefile
@ -9,7 +9,7 @@ TARGETS := ButteredToast ButteredToast2
|
|||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
ButteredToast:
|
$(TARGETS): %.inform
|
||||||
$(eval PROJDIR := $(SRCDIR)/$@.inform)
|
$(eval PROJDIR := $(SRCDIR)/$@.inform)
|
||||||
$(eval SRCS := $(wildcard $(PROJDIR)/Source/*.ni))
|
$(eval SRCS := $(wildcard $(PROJDIR)/Source/*.ni))
|
||||||
$(eval I6S := $(patsubst %.ni,%.i6,$(SRCS)))
|
$(eval I6S := $(patsubst %.ni,%.i6,$(SRCS)))
|
||||||
@ -17,10 +17,14 @@ ButteredToast:
|
|||||||
$(INFORM6) -E2w~S~DG $(PROJDIR)/Build/auto.inf $(PROJDIR)/Build/output.ulx
|
$(INFORM6) -E2w~S~DG $(PROJDIR)/Build/auto.inf $(PROJDIR)/Build/output.ulx
|
||||||
$(INBLORB) $(PROJDIR)/Release.blurb $(SRCDIR)/$@.gblorb
|
$(INBLORB) $(PROJDIR)/Release.blurb $(SRCDIR)/$@.gblorb
|
||||||
|
|
||||||
ButteredToast2:
|
%.inform:
|
||||||
$(eval PROJDIR := $(SRCDIR)/$@.inform)
|
echo $@
|
||||||
$(eval SRCS := $(wildcard $(PROJDIR)/Source/*.ni))
|
|
||||||
$(eval I6S := $(patsubst %.ni,%.i6,$(SRCS)))
|
clean_inform:
|
||||||
$(INFORM7) -project "$(PROJDIR)" $(ARGS)
|
echo $(SRCDIR)/$(TARGET_NAME)/Build
|
||||||
$(INFORM6) -E2w~S~DG $(PROJDIR)/Build/auto.inf $(PROJDIR)/Build/output.ulx
|
|
||||||
$(INBLORB) $(PROJDIR)/Release.blurb $(SRCDIR)/$@.gblorb
|
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user