From: David Griffith Date: Sat, 29 Jul 2023 04:30:29 +0000 (-0700) Subject: Added a "simple" snavig target for doing the minimum of processing. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=1f80a68d11ccc8b00a84a6b9686b8d313b685173;p=liskon_frotz.git Added a "simple" snavig target for doing the minimum of processing. --- diff --git a/Makefile b/Makefile index 4cf9632..4ef9006 100644 --- a/Makefile +++ b/Makefile @@ -143,6 +143,9 @@ endif ifeq ($(MAKECMDGOALS),dosdefs) EXPORT_TYPE = dos endif +ifeq ($(MAKECMDGOALS),simple) + EXPORT_TYPE = simple +endif RANLIB ?= ranlib PKG_CONFIG ?= pkg-config @@ -389,11 +392,15 @@ else endif all: $(FROTZ_BIN) $(DFROTZ_BIN) $(SFROTZ_BIN) $(XFROTZ_BIN) + +# Snavig-processed targets +# snavig: @echo "Snavig: Change an object's shape..." @echo "Possible snavig-processed targets:" @echo " dos (done)" @echo " tops20 (done)" + @echo " simple (done)" @echo " its (not even started)" @echo " tops10 (not even started)" @echo " tenex (not even started)" @@ -430,6 +437,14 @@ tops20: $(COMMON_DEFINES) $(HASH) @echo "Supported compilers are:" @echo " KCC-6.620(c2l3)" +simple: $(COMMON_DEFINES) $(HASH) + @rm -rf $(SNAVIG_DIR) + @mkdir $(SNAVIG_DIR) + @echo "** Invoking snavig" + @$(SNAVIG) -t simple $(COMMON_DIR) $(DUMB_DIR) $(SNAVIG_DIR) + @echo "$(SNAVIG_DIR)/ now contains Frotz source code for $(EXPORT_TYPE)." + @echo "Compile with \"cc -o dfrotz *.c\"" + common_lib: $(COMMON_LIB) curses_lib: $(CURSES_LIB) diff --git a/src/misc/snavig.pl b/src/misc/snavig.pl index b96b7d6..ceb1ca8 100755 --- a/src/misc/snavig.pl +++ b/src/misc/snavig.pl @@ -90,6 +90,8 @@ if ($type eq "tops20") { $dos_end = 1; } elsif ($type eq "dos") { $dos_end = 1; +} elsif ($type eq "simple") { + } else { print " Unknown target type $type.\n"; usage(); @@ -196,6 +198,7 @@ sub usage { print "Types supported:\n"; print " tops20\n"; print " dos\n"; + print " simple\n"; exit; }