Commit Graph

66 Commits

Author SHA1 Message Date
jtc
95c465e08b Update lseek() constants:
L_SET	-> SEEK_SET
And add off_t cast to offset argument.
1995-09-27 18:44:38 +00:00
jtc
6a70570191 include <signal.h> instead of <sys/signal.h> 1995-09-27 18:42:21 +00:00
christos
f4699a7dd3 Revert previous suffix fix. If the .a suffix is present and a .c.a rule is
there, then the rule should be applied. This is the correct behavior.
1995-09-25 02:46:30 +00:00
christos
ae8c2b9dd3 Don't apply the default suffix rules for nodes that are not in our
current directory because we could be building things outside our
directory that were not meant to be build... Fixes PR/1488
1995-09-22 00:42:10 +00:00
christos
17c2255148 Fix PR/1443:
Dependency rules with `=' in the lhs are parsed as variable assignments.
E.g., the following Makefile fails:

A=a b c d
all: $(A:%=%b)
$(A:%=%b):
	@echo $@
1995-09-10 03:58:16 +00:00
christos
b5f782e810 - $NetBSD$ rcsids
- Fixed so that .[A-Z]* targets that do not match keywords are ignored as
  Posix mandates
- Added .PHONY target keyword
1995-06-14 15:18:37 +00:00
ws
de7fa9654c Sort keyword table correctly, so binary search really works 1995-05-15 13:10:10 +00:00
jtc
d08e2815ca None of the functions in util.c are needed by NetBSD, so don't
bother to compile it.
1995-05-03 05:09:14 +00:00
christos
67c2aabd6c Fix small typo; from Chris Torek 1995-04-29 17:05:08 +00:00
christos
f222a602cf Fixed so that orphan tabs are ignored. Should close PR760. 1995-02-08 04:36:41 +00:00
christos
85ac32e8d2 str.c: Don't free NULL; does not work with non posix frees.
var.c: Minor memory leak plugged.
suff.c: Don't add extra sources on the null suffix if it has dependency
	lines or commands attached to it [POSIX says so]
1995-02-04 23:44:41 +00:00
mycroft
b36edbb4da Fix 4 typos pointed out by Jordan, and 1 by me. 1995-01-23 20:34:59 +00:00
christos
0036b358ae Fixed to parse correctly SysV variable substitutions ${VAR:P1=P2} when
P1 or P2 contain }'s or )'s. From mikeb@snow.datametrics.com
1995-01-20 04:35:10 +00:00
christos
77759e5c6d Fixed PR/724, 'make' runs commands when $? is empty
This is not the perfect fix. I think that the whole __SYMDEF
checking code should be removed. [I should also teach myself
how to deal with the PR stuff to mark this closed :-)]
1995-01-11 17:42:26 +00:00
christos
42d1db77e3 Save the name of the environment variables. Remove the comment that
says that we don't. from Paul Borman (prb@bsdi.com)
1995-01-09 18:31:41 +00:00
christos
95531c8e1f Fixes from Paul Borman (prb@bsdi.com)
1. Honor environment variable $MACHINE if set over uname.machine
2. archives with :: are always out of date, even when they have no children.
3. VAR= a b c     # comment, gets the trailing blanks trimmed, unless
   escaped by \. I'll have to read the posix manul to make sure that it
   is ok to handle escapes here.
1995-01-06 19:57:27 +00:00
cgd
7d82c5ab5d a few casts, for peace and quiet. 1994-12-24 16:54:24 +00:00
christos
218fbce657 Don't remove targets when the -n flag is given and make is interrupted.
(From Keith Bostic)
1994-11-25 19:16:45 +00:00
mycroft
126cf80fd0 Deal with lines that contain only spaces, per PR 515, but implemented
differently.
1994-10-18 20:36:26 +00:00
mycroft
dfab95c9fe Remove an outdated comment that is very confusing. 1994-10-18 20:16:13 +00:00
gwr
4ca862ca1d Get the name of this type of MACHINE from utsname
so we can share an executable for similar machines.
(i.e. m68k: amiga hp300, mac68k, sun3, ...)
1994-09-30 03:14:21 +00:00
mycroft
e046f69de1 Use getcwd(3), not getwd(3), and remove some old, unused compatibility code. 1994-09-23 09:33:21 +00:00
cgd
138fcd8327 deal with new share/doc strategy 1994-06-30 05:33:30 +00:00
mycroft
ded5f042c3 Clean up deleted files. 1994-06-28 04:36:07 +00:00
cgd
5b029eb9a8 update for new doc-make/install strategy 1994-06-25 05:57:47 +00:00
cgd
f10235118d from Lite 1994-06-19 02:33:16 +00:00
jtc
ac414e10cd Christos' fix for quoting variable extraction properly. 1994-06-16 18:50:18 +00:00
jtc
b28f89c931 Christos' fix for quoting variable extraction properly. 1994-06-16 18:50:16 +00:00
jtc
9f7dde6ba0 Christos' fix for quoting variable extraction properly. 1994-06-16 18:50:04 +00:00
jtc
26a8972fd7 Fixes from Christos Zoulas, who used purify, objectcenter and testcenter
to find memory leaks and illegal memory accesses.
1994-06-06 22:45:17 +00:00
jtc
63ad15ccc1 Fix from Thorsten Lockert: don't ignore \ before # characters
in strings (Fixes bug 255).
1994-05-21 16:36:01 +00:00
jtc
abd412aa8d Properly parse null command line arguments in makefile rules.
Fix from Christos Zoulas.
1994-05-17 15:55:42 +00:00
glass
0b84fdb5c1 bootstrap improvements 1994-05-09 06:36:20 +00:00
glass
5760062851 bootstrap changes 1994-04-17 03:09:49 +00:00
briggs
506dde3090 Need for.o in list of objects when bootstrapping. 1994-04-09 23:35:25 +00:00
jtc
aa67092685 Fixes from Christos Zoulas:
The following two patches fix a couple of problems with make(1)

1. Null Suffixes were not being copied, but they were being free'd
   This caused rules of the form:

   .c:
	${CC} ...

   to access invalid memory and potentially core dump..
   [That was always broken; I did not break that one :-)]

2. My recent fixes to parse ${VAR:%.foo=%.bar} handled the null string
   case incorrectly (${VAR:=.c} was broken).
1994-03-23 00:52:13 +00:00
pk
15b943d427 Do extended-name archives. 1994-03-18 11:32:09 +00:00
cgd
3cb7f8e872 kill some warnings, from Christos. 1994-03-07 22:22:01 +00:00
jtc
6b1913fcc9 Apply fix that was lost when Christos Zoulas' changes were integrated:
Shell commands start with tabs, not whitespace.  Pmake's
  POSIX behavior must have been derrived from an early draft.
1994-03-05 01:58:23 +00:00
mycroft
f4d252cff0 Clean up deleted files. 1994-03-05 00:35:58 +00:00
cgd
298fa8e587 fixes/improvements from Christos Zoulas <christos@deshaw.com>. 1994-03-05 00:35:26 +00:00
mycroft
ea40a9138d Clean up deleted files. 1994-03-05 00:35:19 +00:00
cgd
3db59563ee fixes/improvements from Christos Zoulas <christos@deshaw.com>. 1994-03-05 00:34:29 +00:00
jtc
f4db87c6e4 Fix typos & spelling errors 1994-02-10 18:24:46 +00:00
jtc
e890eb6415 Include appropriate header files to bring prototypes into scope. 1994-01-13 21:01:40 +00:00
cgd
e11feae6b8 add missing arg to setenv(). reported by downsj@csos.orst.edu 1994-01-13 17:18:30 +00:00
pk
f0e170dc10 Introduced ${.OBJDIR}. The variable is similar to .CURDIR but points at
the directory where make builds the targets. It can be used to clean up
those cumbersome Makefiles that have to guess at the "obj" directory.
1993-12-22 00:25:57 +00:00
jtc
5a178ffc9b POSIX.2 added the -S flag (opposite of -k). It was allready there,
just #ifdef'ed out.
1993-12-17 23:55:57 +00:00
jtc
d253881943 Fix bug #47. Shell commands start with tabs, not whitespace. Pmake's
POSIX behavior must have been derrived from an early draft.
1993-12-17 23:52:04 +00:00
jtc
77e8bced10 Fix bug (PR #42) with -j flag. Doesn't seem to do anything, but at
least it doesn't dump core anymore.
1993-12-15 18:26:40 +00:00