summaryrefslogtreecommitdiff
path: root/dmake/doc/release.txt
blob: 42f2d9d61592f8bb004a655fcd5a028e629222ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
This file is superseded/continued by the toplevel NEWS file.

DMAKE Version 4.1
=================
FINAL FREE RELEASE OF DMAKE, REPLACES VERSION 4.0

Nature: This distribution advances dmake to Version 4.1, patch level 0.
------- This release adds significant functionality and eliminates
        bugs that were introduced with release 4.0.


DETAILS OF ENHANCEMENTS/TWEAKS:
===============================

BUG FIXES:
----------

1. General clean up all over to fix small incompatibilities and obvious
   typos.

2. Fixed bug in getinp.c where buffer was being erroneously overwritten,
   this caused the invalidation of the return address on the stack on
   DOS systems.

3. Fixed a bug that caused the "<target> is up to date" message to be
   suppressed.

4. Fixed a bug involving the value of $@ in conjunction with dynamic
   prerequisites.

5. Relegated the warning associated with duplicate entries in prerequisite
   lists to a non-essential warning.  Added an option flag -Vw to display
   it if you wish to check your makefile for duplicate entries.  Either way
   the parser ignores duplicates.

6. Better default action on checking out RCS targets.  If an RCS target has
   no directory prefix of its own it is checked out into the directory
   which contains the RCS subdirectory, otherwise it ends up in its directory
   qualified location.

7. Improved the speed of lookups in the directory cache; handle mixed case
   file name entries on OS/2 and Win95/NT.

8. Improved prerequisite list generation for long prerequisite lists.

9. Rearanged startup macro files to form an architectural hierarchy.
   This greatly simplifies the maintenance of the startup files.  They
   might even be right at some point in the future.  Please let me know if
   you encounter difficulties, as I don't have access to all possible
   platforms, this sub-hierarchy is bound to have ommisions at this release
   and hence is intended to be evolutionary over time.

10. A build that only touches targets (-t) uses the same algorithm to decide
    valid names as a normal build.

11. Conditional macro assignments fixed, and now work for builtin macro
    variables as well.


NEW FEATURES:
-------------

0. Complete reorganization of Dmake STARTUP scripts.  Please refer to the
   installation notes for details.  THIS ONE IS IMPORTANT!!!

1. Support for long archive member names if Elf is available, plus better
   support for archivers that truncate member names (see comments in
   unix/arlib.c for details).

2. Added variable MAKEVERSION which contains a string indicating the current
   version of dmake.

3. Added the .EXECUTE attribute, see man page for details.

4. Added the .ERRREMOVE attribute, see man page for details.

5. Added support for gmake style if/else/endif, but only if not part of
   a Group recipe.

6. Added initial build target for Coherent version 4.2 UNIX
   and for Windows-NT/Windows-95 32-bit app using Borland C++ 4.0,4.5, 5.0,
   and Microsoft Visual C++ 4.0.

7. MSDOS version now supports two builtin runtime commands, noop, and echo.

8. Added new macro $(uniq list) which returns a sorted version of the
   white space separated tokens in list such that there are no repetitions.

9. Added the function macro $(echo list) which simply returns list.
   This is most useful in conjunction with the new $(foreach ...)
   function macro.

10. Added gmake style function macro

	$(foreach,var,list data)

    where var and list are expanded, and the result is the concatenation of
    expanding data with var being set to each white space separated token in
    list in turn.  For example:

	list = a b c
	all :
		echo [$(foreach,i,$(list) [$i])]

    will output

	[[a] [b] [c]]

    The iterator variable is defined as a local variable to this foreach
    instance.  The following expression illustrates this:

	$(foreach,i,$(foreach,i,$(sort c a b) root/$i) [$i/f.h])

    when evaluated the result is:

	[root/a/f.h] [root/b/f.h] [root/c/f.h]

    The specification of list must be a valid macro expression, such as:

	$($(assign list=a b c))
	$(sort d a b c)
	$(echo a b c)

    and cannot just be the list itself.  That is, the following foreach
    expression:

	$(foreach,i,a b c [$i])

    yields:
	
	"b c [a]"

    when evaluated.

11. Added the macro $(and list).

12. Added the macro $(or list).

13. Added the macro $(not term).

14. Added the .NOINFER attribute to the .INCLUDE directive.  When specified
    any prerequisite of the .INCLUDE directive which cannot be found in
    the .INCLUDEDIRS search list is not automatically made.

15. Improved the handling of internal macros for proper functioning of the *=
    and *:= assignment constructs.  Macros that are internally initially
    defined are considered to be undefined for the purpose of *= and *:=
    assignment until they are the target of an explicit assignment operation.

16. Improved the caching of file names, and their matching on case insensitive
    file systems.  Two control macros help to manage the functionality:

	.DIRCACHE := yes

    Implies that the directory cache will be used.  This is on by default for
    systems that support the reading of directories.  Setting the value of this
    macro to 'no' is equivalent to supplying the '-d' command line switch.

        .DIRCACHERESPCASE := yes

    Causes dmake to respect the case of the directory entries when the cache
    is enabled, thereby treating directory entries in a case sensitive manner.
    Setting this to 'no' disables the matching of case.  This macro has effect
    only if .DIRCACHE := yes.  Otherwise the facilities provided by the native
    OS are used to match file names using 'stat'.

17. Added parameterized user defined function macros.  Yes it's true
    you may now define your own parametized function macros.  Here is
    how it works.  Any macro that is not a predefined function macro and
    is invoked with parameters is looked up as a user defined function
    macro.  A new macro scope is created.  The n'th argument to the
    macro is then assigned to the value of the macro $n where n is 0
    for the first argument, 1 for the second argument and so on.  The
    argument is expanded before it is assigned.  The original macro is
    then expanded.  For example:

        FOO = a $0 b $1 c $2 d
        echo :; $(FOO x y z)

    Will produce the result string "a z b y c z d".  The
    expansion of $(FOO) on it's own behaves as expected and returns the
    string "a b c d" (assuming that each of $0, $1, $2
    are undefined).   The only restriction when specifying function
    macro arguments is as before:  they cannot contain spaces
    themselves.


ACKNOWLEDGEMENTS:
=================
    Thanks to all who submitted code for new features, suggestions for
    improvements, and bug fixes.  I have tried to make sure no gotchas
    remain, if you encounter problems installing or running dmake please
    let me know.  As always, I am always happy to receive e-mail.

    Many have contributed suggestions and bug fixes that make this
    release possible.  The NET thanks you.