🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.mod2
Article #515

Make Part 1

#515
From: Kevin P. Kleinfelter
Date: Sat, 30 Aug 1986 21:05
62 lines
2295 bytes
This document describes a simple version of "make" which is written in
Modula-2, and works under MS-DOS on the IBM-PC.  It compiles under
Logitech's compiler.

For lack of a better name, I shall refer to this version of make as
"fakemake".

To run fakemake, type

make filename

or

make filename/n


The "/n" option will not execute the "commands" and is primarily used
to debug your makefiles.

There are three files necessary to run fakemake:

make.bat -- batch file to do the whole shebang
make.lod -- compiled and linked modula program to figure dependencies
makefile -- user created file stating dependencies

The source supplied assumes that you have a directory called "\SYS",
in which you store all of your "system" files.  "make.lod" must
be stored in this directory, or you will have to change the batch file.
Fakemake creates a file "\SYS\$MAKE.BAT" and executes it.  If you
don't have a directory "\SYS", you may wish to change the code
to use some other directory.

The "makefile":

Lines in the makefile have the following forms:

file1 : file2 file3 ; action
file1 : file2
file1 ; action

The spaces are required.

The first example states that file1 depends on file2 and file3. "action" will
be taken.

The second example states that file1 depends on file2.

The third example adds "action" to the actions for file1.


CAVEAT:

The whole thing is a horrible kludge, but it seems to work.  I have used
it in developing a compiler, so it has been tested fairly well, but I
make no guarantees.


This program is placed in the public domain.  Anyone may make unlimited
noncommercial use of it.  If anyone can figure out how to make Logitech's
Modula-2 let one invoke a secondary command processor, please feel free
to get rid of the batch nonsense.
Technical Details
Message-ID: <2197@gitpyr.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!gatech!gitpyr!kpk

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!gatech!gitpyr!kpk
From: kpk@gitpyr.UUCP (Kevin P. Kleinfelter)
Newsgroups: net.lang.mod2
Subject: Make Part 1
Message-ID: <2197@gitpyr.UUCP>
Date: Sat, 30-Aug-86 17:05:15 EDT
Article-I.D.: gitpyr.2197
Posted: Sat Aug 30 17:05:15 1986
Date-Received: Tue, 9-Sep-86 23:48:32 EDT
Distribution: na
Organization: Georgia Institute of Technology
Lines: 62
Keywords: make, modula-2