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)
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user