<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://old.hacdc.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AWriting_Interactive_Fiction_with_Inform_7</id>
	<title>Talk:Writing Interactive Fiction with Inform 7 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://old.hacdc.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AWriting_Interactive_Fiction_with_Inform_7"/>
	<link rel="alternate" type="text/html" href="https://old.hacdc.org/index.php?title=Talk:Writing_Interactive_Fiction_with_Inform_7&amp;action=history"/>
	<updated>2026-05-07T15:27:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://old.hacdc.org/index.php?title=Talk:Writing_Interactive_Fiction_with_Inform_7&amp;diff=1658&amp;oldid=prev</id>
		<title>Hudson: Makefiles for command line development</title>
		<link rel="alternate" type="text/html" href="https://old.hacdc.org/index.php?title=Talk:Writing_Interactive_Fiction_with_Inform_7&amp;diff=1658&amp;oldid=prev"/>
		<updated>2008-12-14T19:59:55Z</updated>

		<summary type="html">&lt;p&gt;Makefiles for command line development&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Makefiles for command line development ==&lt;br /&gt;
&lt;br /&gt;
I found the built-in editor with Inform7 somewhat frustrating, so I wrote a set of Makefile rules to allow me to do command line compiling while I edited the source files in my editor of choice.  The build process is quite odd; first the Inform7 front-end generates I6 code from the .ni file, which is then compiled into z8 files.  For test playing I used frotz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/make&lt;br /&gt;
&lt;br /&gt;
# For OSX; for Linux i386 it is somewhere in /usr/local/bin&lt;br /&gt;
INFORM_PATH=/Applications/Inform.app/Contents/Resources/&lt;br /&gt;
&lt;br /&gt;
I7_BIN=$(INFORM_PATH)/Compilers/ni&lt;br /&gt;
I7_LIB=$(INFORM_PATH)/Inform7/Extensions&lt;br /&gt;
&lt;br /&gt;
I6_BIN=$(INFORM_PATH)/Compilers/inform-6.31-biplatform&lt;br /&gt;
I6_LIB=$(INFORM_PATH)/Library/Natural&lt;br /&gt;
&lt;br /&gt;
ZCODE_VERSION=8&lt;br /&gt;
EXT=z$(ZCODE_VERSION)&lt;br /&gt;
&lt;br /&gt;
ifdef DEBUG&lt;br /&gt;
DEBUG_OPTS=D&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# The arguments to the Inform6 compiler set:&lt;br /&gt;
#       -E2SDwv$(ZCODE_VERSION)x \&lt;br /&gt;
# E2    Macintosh MPW-style error messages&lt;br /&gt;
# S     Strict error-checking at runtime&lt;br /&gt;
# w     Disable warning messages&lt;br /&gt;
# v8    Generate z-code version 8&lt;br /&gt;
# x     Print # for every 100 lines compiled&lt;br /&gt;
#&lt;br /&gt;
# Optionally, if debugging is requested:&lt;br /&gt;
#&lt;br /&gt;
# D     Insert &amp;quot;Constant DEBUG;&amp;quot; automatically&lt;br /&gt;
#&lt;br /&gt;
%.$(EXT): %.ni&lt;br /&gt;
        TMPDIR=/tmp/inform7-$$$$&lt;br /&gt;
        mkdir -p &amp;quot;$$TMPDIR&amp;quot;/{Build,Source,Index}&lt;br /&gt;
        cp &amp;quot;$&amp;lt;&amp;quot; &amp;quot;$$TMPDIR&amp;quot;/Source/story.ni&lt;br /&gt;
&lt;br /&gt;
        &amp;quot;$(I7_BIN)&amp;quot; \&lt;br /&gt;
                --rules &amp;quot;$(I7_LIB)&amp;quot; \&lt;br /&gt;
                --extension=$(EXT) \&lt;br /&gt;
                --package &amp;quot;$$TMPDIR&amp;quot; \&lt;br /&gt;
&lt;br /&gt;
        &amp;quot;$(I6_BIN)&amp;quot; \&lt;br /&gt;
                -E2Swv$(ZCODE_VERSION)$(DEBUG_OPTS)x \&lt;br /&gt;
                +&amp;quot;$(I6_LIB)&amp;quot; \&lt;br /&gt;
                &amp;quot;$$TMPDIR/Build/auto.inf&amp;quot; \&lt;br /&gt;
                -o &amp;quot;$@&amp;quot; \&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--- [[User:Hudson|Hudson]] 19:59, 14 December 2008 (UTC)&lt;/div&gt;</summary>
		<author><name>Hudson</name></author>
	</entry>
</feed>