summaryrefslogtreecommitdiff
path: root/usr.bin/make
AgeCommit message (Collapse)Author
1999-02-23Document the other side of .MAINMarc Espie
1999-01-09close PR 685.Marc Espie
Slightly trimmed down version of fix by assar@sics.se (strtol failure is usually simpler to test, and error messages should identify the program that produces them)
1998-12-20bye bye BADSIGTheo de Raadt
1998-12-05Modifications from netbsd:Marc Espie
- don't interfere with MACHINE/MACHINE_ARCH defines for bootstrap - type clean-up, time_t, and printing `unknown' ints - fix TARGET/MEMBER bug in archive rules - memmove... - cleaner Error handler. - reentrant brk_string - .MAKE env variable - preliminary scaffolding for .NOPATH Other improvements: - efree - shellneed streamlined - display Stop in .CURDIR after an error. - document most features and misfeatures. - add a few OpenBSD notes to the tutorial.
1998-09-26usr.bin/ man page fixes, f-m.Aaron Campbell
1998-09-05more man page repairs; aaron@ug.cs.dal.caTheo de Raadt
1998-07-23portable bootstrap thing; lidl@eng.us.uu.netTheo de Raadt
1998-07-13ftpd: sleep for an indeterminate amount for non-existant loginsTodd C. Miller
to simulate a crypt, like login does. Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.
1998-07-13Use SEEK_CUR as "whence" in fseek, not 1.Todd C. Miller
1998-07-03Better fix from Christos:Todd C. Miller
deleting a suffix that has 0 source references causes core-dump. Fix: when an unused suffix gets removed, delete it from the suffix list. There is still, however a duplicate free(), which I work around by passing the Suffix back as a return value to SuffRemove() (it gets set to NULL when the suffix is freed). This is probably not the best way to fix this.
1998-07-02Check against suffNull, not the contents of nameTodd C. Miller
1998-07-02better fix; may be a small memory leak thoughTodd C. Miller
1998-07-02back out last patch; it causes incorrect behaviorTodd C. Miller
1998-07-02Fix a bug where make gets confused by targets beginning with a period (``.'')Todd C. Miller
and tried to do a suffix conversion, following a NULL pointer in the proccess. Also add some sanity checks so we don't blindly assume strchr returns non-NULL.
1998-06-29make the bootstrap compile on modern compilersArtur Grabowski
1998-06-03zero sigaction before useTheo de Raadt
1998-05-13catch more commands that require a shellTheo de Raadt
1998-05-12emulate umask inside make, so that the value gets propogated; also ensureTheo de Raadt
that "exit" gets passed to the shell and make does not attempt to execve() it. Other commands will probably come later..
1998-03-30Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various placesTheo de Raadt
1998-03-15fix possibility of null pointer deref when using make's "-j" option.flipk
1998-03-07Add -Wno-char-subscripts to CFLAGSTodd C. Miller
1998-03-07make gcc 2.8 happyTodd C. Miller
1998-02-22some ansiMichael Shalayeff
1998-01-28Use BSDmakefile in favour of [mM]akefile if existent. Good forNiklas Hallqvist
cases where you want BSDmake specific facilities not messing up other implementations of make
1998-01-02use _exit()Theo de Raadt
1997-12-18for the test following test case, do not output FOOBAR=bar (should be FOOBAR=)Theo de Raadt
problem reported by mark@thuvia.demon.co.uk FOO= FOOBAR=$(FOO:=bar)
1997-12-16do not overflow fd_setTheo de Raadt
1997-10-13powerpc ELFPer Fogelstrom
1997-09-21$OpenBSD$Theo de Raadt
1997-09-18environment variablesTheo de Raadt
1997-07-25#if __STDC__ --> #ifdef __STDC__Michael Shalayeff
1997-06-17(foo *)NULL -> NULLkstailey
1997-06-15Avoid possible /tmp races by using mkstemp(3).Todd C. Miller
1997-04-28Back out newer .USE code as it caused problems. I've done a "make build"Todd C. Miller
without problems and the problem Theo saw before is gone.
1997-04-21nope, breaks other thingsTheo de Raadt
1997-04-20Back out the following change since it introduces an ordering problem:Todd C. Miller
in compat mode, expand .USE before evaluating the list of targets, instead of doing .USE expansions on demand, because they can cause tree restructuring.
1997-04-01Sync with NetBSD (mostly by christos initial substitution/regexp from Der Mouse)Todd C. Miller
- fix the variable substitution code in make [PR/2748] 1. change s/a/b/ so that it substitutes the first occurance of the pattern on each word, not only the first word. 2. add flag '1' to the variable substitution so that the substitutions get performed only once. ***THIS IS AN INCOMPATIBLE CHANGE!*** Unfortunately there was no way to make things consistent without modifying the current behavior. Fortunately none of our Makefiles depended on this. OLD: VAR = aa1 aa2 aa3 aa4 S/a/b/ = ba1 aa2 aa3 aa4 S/a/b/g = bb1 bb2 bb3 bb4 NEW: VAR = aa1 aa2 aa3 aa4 S/a/b/ = ba1 ba2 ba3 ba4 S/a/b/1 = ba1 aa2 aa3 aa4 S/a/b/g = bb1 bb2 bb3 bb4 S/a/b/1g = bb1 aa2 aa3 aa4 - add regexp variable substitution via 'C/foo/bar/' [PR/2752] - add variable quoting via the ${VAR:Q} modifier. This is useful when running recursive invocations of make(1): make VAR=${VAR:Q} will always work... (This may prove useful in the kernel builds...) [PR/2981] - BSD did not traditionally have <sys/cdefs.h>; use BSD4_4 instead and include <sys/param.h> to grab it. - Don't compile the regex code if MAKE_BOOTSTRAP (from gwr) - Use explicit .c.o rule in Makefile.boot so that the bootstrap process works. - Use only integral types in procedure arguments. [buf.c buf.h] - Include <stdlib.h> to get getenv() prototype on SVR4 - if __STDC__ -> ifdef __STDC__ to appease SVR4 - Define const and volatile for non __STDC__ - Implement snprintf() and vsnprintf() for non BSD4_4 systems. - Make $MACHINE_ARCH settable from the environment. - Fix .USE directive problems: (reported by cgd) 1. ${.*} variables did not get expanded in dependencies. 2. expanded ${.*} variables in .USE dependencies can cause tree restructuring; handle it. 3. in compat mode, expand .USE before evaluating the list of targets, instead of doing .USE expansions on demand, because they can cause tree restructuring. - Add a .MADE directive to indicated that the children of a target are up-to-date, even when they are not. This is to simulate our current make install behavior with proper dependencies. - Fix problems in the RE substitution error handling. - Locate all the children of a node marked as MADE. - Do not compile-in ${MACHINE} (as per NetBSD PR#3386) - Disable globbing for targets/dependencies when POSIX is defined. - Fix globbing so that patterns that don't have a matching number of [] or {} don't get expanded. (before the [ case got expanded to nothing!) This is disabled. - Make sure that the children of nodes that are marked .MADE, are marked UPTODATE and their timestamps are consistent. - Don't disable wildcards completely; they are used by other Makefiles.
1997-03-26s/main/listmain/; seebs@solon.comTheo de Raadt
1997-03-03changed to CFLAGS+=, closes PR user/116.flipk
1997-01-27Set MACHINE_ARCH only if it's not already in the environment. Updatebriggs
comment accordingly. Patch from Dale Rahn.
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-22PowerPC port is ELF based, treat same as svr4, mips, and alpha.Dale S. Rahn
1996-11-30Sync with NetBSD:Todd C. Miller
- Merge in FreeBSD and Lite2 changes. - Fix bug where a non-archive target with a .a suffix would always be considered to be out of date, since it does not have a TOC. - Fix NetBSD PR #2930: declare missing variable.
1996-10-17Do not consider non-existent archives as up-to-date on non-a.out systemsNiklas Hallqvist
1996-09-21Do not look for a.out t.o.c sections in the mips-based portsNiklas Hallqvist
1996-09-21document special MAKEOBJDIR/obj.$MACHINE/obj behaviour of makeTheo de Raadt
1996-09-21From NetBSD (christos):briggs
- Fix bug where the first line after a conditionally skipped was not ready in its entirety if it contained a continuation. - Print the whole error line, not just the first 20 characters of it.
1996-09-02Sync up with NetBSD:briggs
(christos) Fix bug reported by Greg Hudson where leaf (source only) nodes were referenced only by their basename and not by their full pathname. This breaks when .PATH or MAKEOBJDIR are used. There might be Makefiles around that try to work around this bug by prepending ${.CURDIR} to the sources, and they should be found and fixed. Also a lot of the gunk in suff.c that was attempting to work around the same problem could be removed. (christos) - Move -D flags from Makefile to config.h and explain what they do. Add -Wall -Wno-unused to CFLAGS. Add new define SYSVVARSUB to enable SysV style variable substitutions and enable them. - Add SunOS style command substitutions via SUNSHCMD - Fix core dump with '{variable = value' (christos) Fix bug where make will always exit with 0, even when one or more parallel jobs failed. (Only affects parallel make code) (christos) Protect __P from being multiply defined (for systems that already define it) (christos) Add strdup() since ultrix is missing it. From Larry Schwimmer <rosebud@cyclone.Stanford.EDU> (christos) Add estrdup(), a checked version of strdup and use it. (christos) Recognize SVR4 style long filename entries in archives. (thorpej) Tidy up some RCS ids a bit.
1996-08-24Conditionally define _PATH* vars so they can be overriden on the command lineimp
1996-07-31RANLIBMAG should not be set on alphas, as make doesn't know ECOFF archivesNiklas Hallqvist