]> git.pld-linux.org Git - packages/icmake.git/blame - icmake.doc
- typos / formatting / etc.
[packages/icmake.git] / icmake.doc
CommitLineData
e1712299
SZ
1=============================================================================
2 ICMAKE
3 the Intelligent C-like MAKEr, or
4 the ICce MAKE utility
5
6 Copyright (c) Frank B. Brokken and Karel Kubat
7 frank@icce.rug.nl, karel@icce.rug.nl
8
9 ICCE, State University of Groningen, Netherlands
10
11 This document is part of distribution 6.20 of ICMAKE
12=============================================================================
13
14
15Introduction
16------------
17
18 Icmake is a hybrid between a 'make' utility and a 'shell script'
19language. Originally, it was concocted to provide a useful tool for
20automatic program maintenance and system administrative tasks on MS-DOS
21platforms. As we learned to appreciate its flexibility, Icmake was
22eventually ported to Unix platforms (SCO and Linux). By now Icmake also runs
23on a HP-Unix platform.
24
25 To give an impression of "what Icmake does", take a look at the
26following makefile. It is used for automatic program maintenance, where it
27is assumed that in some directory all files with the extension ".c" (C
28source files) constitute a program "myprog". The automatic maintenance makes
29sure that, once Icmake is invoked, C source files which are more recent
30(newer) than a library file "libmyprog.a" are recompiled and placed in the
31library. A new program is then made and installed in a directory
32"/home/user/bin".
33
34void main ()
35{
36 list
37 cfiles; // list of .c files
38 int
39 i; // counter variable
40 string
41 sourcefile; // string with name of
42 // 1 source file
43
44 cfiles = makelist ("*.c", younger, // cfiles is now a list of
45 "libmyprog.a"); // all files to recompile
46
47 if (cfiles) // if there are any files..
48 for (i = 0; i < sizeof (cfiles), // recompile them
49 i++)
50 {
51 sourcefile = element (i, cfiles); // get the name from the list
52 exec ("gcc", "-c -Wall", sourcefile); // recompile
53 }
54
55 if (makelist ("*.o")) // any "*.o" files here?
56 {
57 exec ("ar", "rvs", "libmyprog.a", "*.o"); // add to library
58 exec ("rm", "*.o"); // remove them
59 exec ("gcc", "-o myprog", "libmyprog.a"); // re-link program
60 exec ("mv", "myprog", "/home/user/bin"); // and install in bin dir
61 }
62}
63
64 The source files for Icmake look remarkably like C sourcefiles. The
65resemblance is so close that this cannot be pure chance! Yes, we have
66implemented Icmake to be a language with a syntax which largely overlaps C.
67Since we know how to program in C, we decided that we didn't want to learn
68some new macro language. The Icmake language is a "subset" of C in the
69sence that not all operators or functions of C are implemented (but a good
70deal are, e.g., gets(), getch(), printf(), etc.). The Icmake language has
71its own extensions to make it a handy language for the purpose of
72maintenance: e.g., the operator "younger" compares two files in respect to
73their date of last modification, a type "list" is defined to hold several
74strings.
75
76 The usage of Icmake is not restricted to program maintenance. The
77setup, which allows for functions, arguments, local or global variables, the
78calling of external programs, etc. makes Icmake also extremely suitable as
79a shell script language. E.g., it is easy to accomplish to let Icmake
80figure out which files need to be backupped since the last backup date and
81to start a process to do so, to send mail about it etc.
82
83 This guide provides a short description how Icmake can be ported to
84new platforms. The documentation for the usage of Icmake, including a
85description of the grammar and of all built-in functions, comes with the
86distribution files.
87
88
89Installing Icmake
90-----------------
91
92The icmake-X.YY.tgz contains all source files and installation information
93if you want to install icmake from scratch. You *need* this file if you
94want to install icmake on systems not running Linux or Ms-DOS.
95
96The icmake-X.YY.bin.tgz contains linux and ms-dos executables. If you only
97want to use the icmake programs, you can get this file, unpack it and start
98using icmake.
99
100See the file INSTALL for details. INSTALL is in icmake-X.YY.tgz,
101containing all other files necessary for installing icmake.
102
103To unpack the archives use (GNU-tar 1.11.2):
104
105 tar xzvf icmake-X.YY.tgz
106and/or:
107 tar xzvf icmake-X.YY.bin.tgz
108
109which unpacks into an 'icmake' subdirectory below the current subdirectory.
110Also, separate gzip and tar steps could be used, as in:
111
112 gzip -c -d icmake-X.YY.tgz | tar xvf -
113and/or:
114 gzip -c -d icmake-X.YY.bin.tgz | tar xvf -
115
116The Documentation
117-----------------
118
119 Icmake is documented in a Postscript file, "icmake.ps", located in
120the directory "doc". This file is generated from a .dvi file using dvips,
121and can be processed with GhostScript. Note that the file is generated for
122a printer resolution of 300 dpi, which suits a LaserJet family printer. If
123your site lacks the means to print this file, you can mail us at the address
124below to obtain a printed copy of the documentation. (However, we will
125charge you a small amount to cover our costs).
126
127 The directory "doc" furthermore contains the file "icmake.1". This
128is a crude "man" page for Unix systems. You can install it by copying it to
129a directory which contains formatted manual pages. To use this feature,
130your "man" command must be able to show an already-formatted manual entry.
131E.g., on Linux systems you can copy this file to "/usr/man/cat1". Typing
132"man icmake" will then show the information. Some man systems also support
133compressed manual pages. On these systems you may achieve a lower disk
134usage by compressing the file "icmake.1" to "icmake.1.Z", using the Unix
135program "compress".
136
137 A few makefiles are provided as examples in the directory
138"examples". You may wish to look at these to see how makefiles can be
139organized.
140
141Some Legal Stuff
142----------------
143
144 You don't have to pay us for Icmake. This means that no fee is
145charged for it by us. As with everything that's free, there's no pay but
146also *absolutely no warranty*. Furthermore, you are allowed (and
147encouraged) to distribute Icmake, provided that you include this information
148with each distribution. It is strongly suggested that you do *not* charge
149money for the distribution of Icmake (possibly not even the $5 for
150shipping).
151
152 The source files and the documentation for Icmake are copyrighted by
153us. The reason for this is (a) that we'd like to have always the last
154version of Icmake, and (b) that we'd like to have the last word in all
155modifications. If you have requests (or even better, "working code" to
156include in Icmake) please mail us and we'll gladly oblige when we find the
157time.
158
159
160Requests, Bug Reports, etc.
161---------------------------
162
163 We'd very much appreciate it if you'd let us know if you encounter any
164bugs. Also, if you have requests or comments about the programs or the
165documentation, mail us. We can be reached at:
166
167 Frank Brokken Karel Kubat
168e-mail: F.B.Brokken@icce.rug.nl K.Kubat@icce.rug.nl
169phone: (+31) 50 63 36 88 (+31) 50 63 36 47
170address: Westerhaven 16 Westerhaven 16
171 Groningen Groningen
172 Netherlands Netherlands
173
174-----------------------------------------------------------------------------
175(end of icmake.doc)
This page took 0.104804 seconds and 4 git commands to generate.