1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-05-02 00:59:37 +03:00
inform7/retrospective/retrospective.mkscript
2022-04-22 23:55:36 +01:00

50 lines
2.2 KiB
Plaintext

# This is "retrospective.mkscript", a script used to generate "retrospective.mk"
# which is used to build the old-time versions of the Inform tools stored in the
# "inform/retrospective" directory. Do not edit "retrospective.mk" directly.
# Instead, edit this script, and then rebuild "retrospective.mk" with the command:
# ../inweb/Tangled/inweb -prototype retrospective/retrospective.mkscript -makefile retrospective/retrospective.mk
# (Or simply type "make makers" to make all of the subsidiary makefiles inside the
# inform repository, including this one.)
# See the inweb manual for documentation on the *.mkscript file format, i.e.,
# the format in which this file is written. But it is essentially just a makefile
# with a number of special macro and loop features whose syntax involves braces
# { ... }, so anywhere that you see braces, you're looking at something special
# to *.mkscript; anything else is straightforward make syntax.
# -----------------------------------------------------------------------------
# Note that the resulting makefile expects to be used with the current working
# directory set to "inform/retrospective". So it can then be invoked just as "make".
# -----------------------------------------------------------------------------
{platform-settings}
{define: retro-targets build: BUILD}
retrospective/{BUILD}/cBlorb:
{compile-indulgently from: retrospective/{BUILD}/cBlorb.c to: retrospective/{BUILD}/cBlorb.o }
{link from: retrospective/{BUILD}/cBlorb.o to: retrospective/{BUILD}/cBlorb$(EXEEXTENSION) }
retrospective/{BUILD}/ni:
{compile-indulgently from: retrospective/{BUILD}/ni.c to: retrospective/{BUILD}/ni.o }
{link from: retrospective/{BUILD}/ni.o to: retrospective/{BUILD}/ni$(EXEEXTENSION) }
{end-define}
# -----------------------------------------------------------------------------
{set name: SUPPORTED_BUILDS value: 6L02, 6L38, 6M62}
# -----------------------------------------------------------------------------
.PHONY: all
all: {repeat with: BUILD in: {SUPPORTED_BUILDS}}retrospective/{BUILD}/cBlorb retrospective/{BUILD}/ni {end-repeat}
{repeat with: BUILD in: {SUPPORTED_BUILDS}}
{retro-targets build: {BUILD}}
{end-repeat}