1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-03 07:24:58 +03:00
inform7/inblorb/makescript.txt

53 lines
1 KiB
Plaintext
Raw Normal View History

2019-02-05 02:44:07 +02:00
# This is the script from which inweb -makefile will construct a makefile.
{platform-settings}
{identity-settings}
BLORBLIB = $(ME)/Tests/Assistants/blorblib
# Making the program:
$(ME)/Tangled/$(MYNAME): $(BLORBLIB)/blorbscan {dependent-files}
2019-02-05 02:44:07 +02:00
$(call make-me)
.PHONY: force
force:
$(call make-me)
define make-me
$(INWEB) $(ME) -tangle
$(CC) -o $(ME)/Tangled/$(ME).o $(ME)/Tangled/$(ME).c
2020-07-13 22:56:17 +03:00
$(LINK) -o $(ME)/Tangled/$(ME)$(EXEEXTENSION) $(ME)/Tangled/$(ME).o $(LINKEROPTS)
2019-02-05 02:44:07 +02:00
endef
# Testing the program:
.PHONY: test
test: $(BLORBLIB)/blorbscan
$(INTEST) -from $(ME) all
$(BLORBLIB)/blorbscan: $(BLORBLIB)/*.c $(BLORBLIB)/*.h
cd $(BLORBLIB); $(INDULGENTCC) blorblib.c
cd $(BLORBLIB); $(INDULGENTCC) blorbscan.c
2020-07-13 22:56:17 +03:00
cd $(BLORBLIB); $(LINK) -o blorbscan$(EXEEXTENSION) *.o $(LINKEROPTS)
2019-02-05 02:44:07 +02:00
# Cleaning up:
.PHONY: clean
clean:
$(call clean-up)
.PHONY: purge
purge:
$(call clean-up)
rm -f $(ME)/Tangled/$(ME)
rm -f $(BLORBLIB)/blorbscan
define clean-up
rm -f $(ME)/Tangled/*.o
rm -f $(ME)/Tangled/*.c
rm -f $(ME)/Tangled/*.h
rm -f $(BLORBLIB)/*.o
endef