summaryrefslogtreecommitdiff
path: root/usr.bin/make/make.1
AgeCommit message (Collapse)Author
2002-03-23uname(3); hunter@dg.net.uaTheo de Raadt
2002-03-06First step in really explaining what make does, and what's standard,Marc Espie
and what's not. okay millert@, miod@.
2001-08-20Powered by @mantoya.Mike Pechkin
o) fix bogus .Xr usage; millert@ ok.
2001-05-05Document for loop mechanics for several variables.Marc Espie
Idea taken from NetBSD. implementation completely different, as our loop implementation diverged a while back.
2001-05-03Minor manpage tweaksMarc Espie
2001-03-29Pretty.Aaron Campbell
2000-12-06we actually have useful code for '.for' loops, its not a no-op. ok espie@Todd T. Fries
2000-11-10- Section shuffling: comply to the section ordering outlined in mdoc(7).Aaron Campbell
- Some .Nm trimming. - .Sh AUTHOR -> .Sh AUTHORS - Other miscellaneous fixes here and there.
2000-07-31POSIX rules: pass variables set on the command line to submakes throughMarc Espie
MAKEFLAGS
2000-07-06Insert missing .El directive; todd@Aaron Campbell
2000-07-01Slightly nicer wording: begins by -> begins withMarc Espie
2000-06-30Recognize `+cmd' as a command that should always be executed, even inMarc Espie
make -n mode. Currently works only in sequential make mode. In parallel make mode, it's just a no-op. Useful to debug recursive Makefiles, and part of POSIX.
2000-06-06close pr1260 from danh@nfol.comEric Jackson
2000-04-12Trailing whitespace begone!Aaron Campbell
2000-04-03Junk CDPATH from the environment.Marc Espie
2000-03-11Various cleanups and standardizations.Aaron Campbell
2000-03-10Various cleanups and standardization.Aaron Campbell
2000-01-19.MAIN is nothing special.Marc Espie
Silently ignoring all commands but the first set in a normal dependency is a generic `feature' of make.
2000-01-02More bugs... fixes for most pending.Marc Espie
make needs quite a lot more of cleaning up yet.
1999-12-26For loops are no longer that bad.Marc Espie
However, I found some more oddities while going through the scanner...
1999-12-06Fix handling ofMarc Espie
VAR!= specifically, properly distinguish between bad commands and empty results.
1999-11-11Close bugMarc Espie
1999-11-10Turn on strict-prototypes, add missing prototypes.Marc Espie
Move main prototype to main.c, as this is not used from any other file. Close open bug.
1999-11-06Document a few of the problems I've found while revamping make.Marc Espie
Temporary solution, until Todd or somebody else *finally* starts reviewing the first patches of the 20,000 lines diff I currently have...
1999-09-25Add :L/:U modificators (lowercase/uppercase)Marc Espie
To use to get ports building more user-friendly.
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1999-05-16More special targets documentation.Marc Espie
More odd behavior (filed as `bugs' in some cases...)
1999-03-17Document known problem and work-around, until I manage to get it fixed.Marc Espie
1999-02-23Document the other side of .MAINMarc Espie
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-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
1997-09-18environment variablesTheo de Raadt
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.
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-09-21document special MAKEOBJDIR/obj.$MACHINE/obj behaviour of makeTheo de Raadt
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-03-27From NetBSD: merge of 960317Niklas Hallqvist
1996-02-23Implement an -m option used for replacing /usr/share/mk with aNiklas Hallqvist
custom search path, like $DESTDIR/usr/share/mk
1995-12-17from christos:Theo de Raadt
- Added .WAIT to synchronize between sources like other pmake variants. - Updated documentation to include .ORDER .PARALLEL .NO_PARALLEL .NONPARALLEL
1995-12-14from christos@netbsd:Theo de Raadt
Minor: - ${.PREFIX} should never contain a full pathname - Fixed gcc -Wall warnings Major: - compatMake is now FALSE. This means that we are now running in full pmake mode: * rules on dependency lines can be executed in parallel and or out of sequence: foo: bar baz can fire the rule for baz before the rule for bar is fired. To enforce bar to be fired before baz, another rule needs to be added. [bar: baz] * adjacent shell commands in a target are now executed by a single invocation of the shell, not one invocation of the shell per line (compatMake can be turned off using the -B flag) - The -j flag now works... I.e. make -j 4 will fork up to four jobs in parallel when it can. The target name is printed before each burst of output caused by the target execution as '--- target ---', when j > 1 - I have changed all the Makefiles so that they work with make -j N, and I have tested the whole netbsd by: 'make -j 4 cleandir; make -j 4 depend; make -j 4; make -j 4 install' - I have not compiled or tested this version of make with -DREMOTE. - Turn compat mode on by default. It gets turned off when the -j without the -B flag is specified. [Thus you can use -j 1 to turn it off]. - Fix malloc -> emalloc as Gordon noted. Updates for POSIX/SVR4 compiling: arch.c: Don't require ranlib stuff. Not everybody has it. dir.c: SunOS-4 != Solaris; change #ifdef sun to #if sun && !__svr4__ job.c, compat.c: Don't use 'union wait', use int and the W*() macros. main.c: Check for uname() == -1; some unames return > 0... util.c, job.c: Add signal() with BSD semantics for svr4, don't use bsd sigmask and friends. from cgd@netbsd: pull in make.h. (PAlloc() now uses emalloc(), which is prototyped in make.h. If the prototype is not in scope on the Alpha, I see lots of "cast to pointer from integer of different size" warnings.)
1995-12-08s/environmental/environment/Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt