2022-04-22 02:09:24 +03:00
|
|
|
# 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}
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
2022-04-23 01:55:36 +03:00
|
|
|
{set name: SUPPORTED_BUILDS value: 6L02, 6L38, 6M62}
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
|
2022-04-22 02:09:24 +03:00
|
|
|
.PHONY: all
|
|
|
|
|
2022-04-23 01:55:36 +03:00
|
|
|
all: {repeat with: BUILD in: {SUPPORTED_BUILDS}}retrospective/{BUILD}/cBlorb retrospective/{BUILD}/ni {end-repeat}
|
2022-04-22 02:09:24 +03:00
|
|
|
|
2022-04-23 01:55:36 +03:00
|
|
|
{repeat with: BUILD in: {SUPPORTED_BUILDS}}
|
|
|
|
{retro-targets build: {BUILD}}
|
|
|
|
{end-repeat}
|