OpenBSD CVS

CVS log for src/usr.bin/make/make.1


[BACK] Up to [local] / src / usr.bin / make

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.141 / (download) - annotate - [select for diffs], Thu Aug 10 10:56:34 2023 UTC (9 months, 1 week ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.140: +4 -2 lines
Diff to previous 1.140 (colored)

document .VARIABLES

Revision 1.140 / (download) - annotate - [select for diffs], Sat Jul 8 18:02:00 2023 UTC (10 months, 1 week ago) by espie
Branch: MAIN
Changes since 1.139: +8 -6 lines
Diff to previous 1.139 (colored)

talk about "jobs" because that's make knows, and mention the heuristics
about the recursive non exploding kitten recursive behavior outside of
BUGS.

okay naddy@, jca@

Revision 1.139 / (download) - annotate - [select for diffs], Tue Jan 17 13:03:22 2023 UTC (16 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.138: +3 -3 lines
Diff to previous 1.138 (colored)

Arguments may contain more than one variable assignment

`make FOO=1 BAR=2 ...' works as expected and lots of things wouldn't work
if make only accepted a single assignment, as currently documented.

Fix SYNOPSIS and usage to match reality and POSIX spec (thanks jmc).

OK jmc

Revision 1.138 / (download) - annotate - [select for diffs], Wed Dec 28 13:00:57 2022 UTC (16 months, 3 weeks ago) by jsg
Branch: MAIN
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

the S in CSRC is Science not Sciences

Revision 1.137 / (download) - annotate - [select for diffs], Fri Oct 14 11:26:19 2022 UTC (19 months ago) by kn
Branch: MAIN
Changes since 1.136: +5 -5 lines
Diff to previous 1.136 (colored)

Document missing cases of variable substitution

Feedback OK op

Revision 1.136 / (download) - annotate - [select for diffs], Wed Aug 3 07:54:47 2022 UTC (21 months, 2 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.135: +10 -5 lines
Diff to previous 1.135 (colored)

make(1) first appeared outside of Bell Labs in PWB/UNIX 1.0

it did not start in the PWB group
"PWB did not create make; Stu Feldman did it in research." Doug McIlroy
https://minnie.tuhs.org/pipermail/tuhs/2015-November/007572.html

with and ok schwarze@

Revision 1.135 / (download) - annotate - [select for diffs], Thu Mar 31 17:27:25 2022 UTC (2 years, 1 month ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@

Revision 1.134 / (download) - annotate - [select for diffs], Thu Nov 11 20:42:54 2021 UTC (2 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

add some missing Ns; from leon fischer

Revision 1.133 / (download) - annotate - [select for diffs], Mon Mar 8 06:20:50 2021 UTC (3 years, 2 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.132: +7 -5 lines
Diff to previous 1.132 (colored)

use a journal reference instead of cstr when possible

Revision 1.132 / (download) - annotate - [select for diffs], Mon Mar 8 02:47:28 2021 UTC (3 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.131: +16 -2 lines
Diff to previous 1.131 (colored)

Add some references, most of these were removed when we stopped building
and installing USD/SMM/PSD docs.

jmc@ agrees with the direction, ok millert@ on an earlier diff

Revision 1.131 / (download) - annotate - [select for diffs], Sun Jan 26 12:40:50 2020 UTC (4 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.130: +2 -4 lines
Diff to previous 1.130 (colored)

remove documentation for .MADE

Revision 1.130 / (download) - annotate - [select for diffs], Sat Dec 21 15:25:12 2019 UTC (4 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.129: +13 -2 lines
Diff to previous 1.129 (colored)

The man page actually didn't explain its main parameters!

fix glaring omission

okay schwarze@, jmc@

Revision 1.129 / (download) - annotate - [select for diffs], Thu Aug 22 19:37:30 2019 UTC (4 years, 8 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.128: +3 -8 lines
Diff to previous 1.128 (colored)

GC some old stuff
okay millert@

Revision 1.128 / (download) - annotate - [select for diffs], Thu Jan 31 10:27:28 2019 UTC (5 years, 3 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.127: +3 -3 lines
Diff to previous 1.127 (colored)

thinko, from Scott Cheloha

Revision 1.127 / (download) - annotate - [select for diffs], Wed Jul 4 14:11:49 2018 UTC (5 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.126: +3 -3 lines
Diff to previous 1.126 (colored)

remove ambiguity; from ross l richardson

Revision 1.126 / (download) - annotate - [select for diffs], Sun Jul 30 21:17:05 2017 UTC (6 years, 9 months ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.125: +4 -4 lines
Diff to previous 1.125 (colored)

Remove outdated count of the number of available assignment operators.
While here, add a missing paragraph.

ok jmc@

Revision 1.125 / (download) - annotate - [select for diffs], Wed Apr 19 09:32:46 2017 UTC (7 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.124: +4 -4 lines
Diff to previous 1.124 (colored)

spelling fixes from michael w. bombardieri

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jan 1 01:08:11 2017 UTC (7 years, 4 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.123: +12 -12 lines
Diff to previous 1.123 (colored)

Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known'
if they precede the noun and omit hyphens otherwise.

ok tj

Revision 1.123 / (download) - annotate - [select for diffs], Wed Dec 28 22:47:11 2016 UTC (7 years, 4 months ago) by schwarze
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

fix the remaining cases of .Xr with only one argument

Revision 1.122 / (download) - annotate - [select for diffs], Sun Oct 23 17:27:01 2016 UTC (7 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.121: +5 -5 lines
Diff to previous 1.121 (colored)

zap trailing whitespace;

Revision 1.121 / (download) - annotate - [select for diffs], Sun Oct 23 14:54:14 2016 UTC (7 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.120: +24 -5 lines
Diff to previous 1.120 (colored)

add !!=
feedback and okay millert@

Revision 1.120 / (download) - annotate - [select for diffs], Fri Mar 13 19:58:41 2015 UTC (9 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored)

remove the first comma from constructs like ", and," and ", or,": you can use
"and" and "or" to join sentence clauses, and you can use commas, but both hinders
reading;

Revision 1.119 / (download) - annotate - [select for diffs], Sat Feb 28 21:51:57 2015 UTC (9 years, 2 months ago) by bentley
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.118: +5 -5 lines
Diff to previous 1.118 (colored)

Reduce usage of predefined strings in manpages.

Predefined strings are not very portable across troff implementations,
and they make the source much harder to read. Usually the intended
character can be written directly.

No output changes, except for two instances where the incorrect escape
was used in the first place.

tweaks + ok schwarze@

Revision 1.118 / (download) - annotate - [select for diffs], Sat Feb 7 13:35:00 2015 UTC (9 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.117: +8 -3 lines
Diff to previous 1.117 (colored)

document -C

Revision 1.117 / (download) - annotate - [select for diffs], Mon Nov 3 12:48:37 2014 UTC (9 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.116: +5 -2 lines
Diff to previous 1.116 (colored)

introspection feature: ${MAKEFILE_LIST} contains the list of makefiles
parsed.

name stolen from gmake, from a suggestion from guenther@, to avoid
gratuitous confusin.

okay guenther@, millert@

Revision 1.116 / (download) - annotate - [select for diffs], Mon Oct 20 07:27:46 2014 UTC (9 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.115: +22 -2 lines
Diff to previous 1.115 (colored)

document sinclude/-include

Revision 1.115 / (download) - annotate - [select for diffs], Wed Jul 16 14:11:50 2014 UTC (9 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.114: +10 -14 lines
Diff to previous 1.114 (colored)

tweak previous;

Revision 1.114 / (download) - annotate - [select for diffs], Tue Jul 15 23:07:19 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.113: +6 -13 lines
Diff to previous 1.113 (colored)

remove support for the non-standard BSDmakefile, which make tries to
open first.  a handful of strange ports will cope soon.
ok espie

Revision 1.113 / (download) - annotate - [select for diffs], Mon Apr 14 07:03:19 2014 UTC (10 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.112: +3 -2 lines
Diff to previous 1.112 (colored)

STANDARDS: note that make is optional
ok schwarze sobrado

Revision 1.112 / (download) - annotate - [select for diffs], Fri Mar 14 10:19:01 2014 UTC (10 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored)

.depend is definitely not *appended* to Makefile. Its rules are also
read after the main makefile.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Mar 14 07:46:12 2014 UTC (10 years, 2 months ago) by jmc
Branch: MAIN
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

better wording;
From: Daniel Dickman

Revision 1.110 / (download) - annotate - [select for diffs], Thu Feb 13 07:30:39 2014 UTC (10 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.109: +3 -5 lines
Diff to previous 1.109 (colored)

Don't use use .Tn with AND/OR/NOT
Phrase any "The _flags_ argument is the ..." line consistently,
eliminating unnecessary use of 'inclusive' and saying "zero or more"
or "one or more" as appropriate

ok millert@ jmc@ schwarze@

Revision 1.109 / (download) - annotate - [select for diffs], Sun Nov 24 12:36:13 2013 UTC (10 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.108: +18 -44 lines
Diff to previous 1.108 (colored)

simplify determination of OBJDIR to what we actually use.
(prevents some race conditions by just chdir()'ing into the right objdir)
problem noticed by theo
okay'd by general apathy...

Revision 1.108 / (download) - annotate - [select for diffs], Sat Oct 19 18:15:39 2013 UTC (10 years, 7 months ago) by schwarze
Branch: MAIN
Changes since 1.107: +6 -6 lines
Diff to previous 1.107 (colored)

fix a few obvious .Ar markup errors (unfortunately, there are many more)
found while working on mandoc apropos

Revision 1.107 / (download) - annotate - [select for diffs], Mon Aug 26 16:54:04 2013 UTC (10 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

"reactivate";
make.1 part From: Christian Schulte

Revision 1.106 / (download) - annotate - [select for diffs], Wed Aug 14 08:39:26 2013 UTC (10 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.105: +24 -9 lines
Diff to previous 1.105 (colored)

some Bx/Ox conversion;
From: Jan Stary

Revision 1.105 / (download) - annotate - [select for diffs], Mon Jun 24 15:44:36 2013 UTC (10 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored)

do not use literal displays when the display contains mark up;

Revision 1.104 / (download) - annotate - [select for diffs], Sat Jun 15 13:03:41 2013 UTC (10 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.103: +34 -25 lines
Diff to previous 1.103 (colored)

make explicit some hidden assumptions, make path handling clearer,
fix set -e description, as we actually match what posix says.

a bit of feedback from millert@, guenther@, jmc@ will probably have
further fixes when he's back :)

Revision 1.103 / (download) - annotate - [select for diffs], Mon May 6 20:57:26 2013 UTC (11 years ago) by naddy
Branch: MAIN
Changes since 1.102: +6 -6 lines
Diff to previous 1.102 (colored)

clarify that the :C modifier uses extended regular expressions; ok espie@ jmc@

Revision 1.102 / (download) - annotate - [select for diffs], Tue Feb 19 02:00:57 2013 UTC (11 years, 3 months ago) by william
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

Add missing trailing slash on the :S modifier in the BUGS section.

ok espie

Revision 1.101 / (download) - annotate - [select for diffs], Mon Feb 4 14:44:58 2013 UTC (11 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.100: +17 -10 lines
Diff to previous 1.100 (colored)

synch with reality, okay jmc@

Revision 1.100 / (download) - annotate - [select for diffs], Fri Oct 12 21:44:19 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.99: +5 -2 lines
Diff to previous 1.99 (colored)

Document duplicate inference rules. That's posix behavior, and what we do.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Oct 11 14:56:59 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.98: +9 -9 lines
Diff to previous 1.98 (colored)

amend bug section with some fixed stuff.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Oct 9 19:52:44 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.97: +58 -36 lines
Diff to previous 1.97 (colored)

... yet more documentation, lots of inputs from jmc@ as usual.

Revision 1.97 / (download) - annotate - [select for diffs], Sat Oct 6 18:41:53 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.96: +150 -120 lines
Diff to previous 1.96 (colored)

rework section about special targets/prereq to be somewhat readable.

feedback & ok jmc@

Revision 1.96 / (download) - annotate - [select for diffs], Fri Oct 5 13:06:00 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.95: +144 -52 lines
Diff to previous 1.95 (colored)

document implicit rules and target dependency operators better.
some input from jmc@, might not be 100% perfect yet, but better than
nothing at all.

Revision 1.95 / (download) - annotate - [select for diffs], Tue Oct 2 10:18:37 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.94: +137 -139 lines
Diff to previous 1.94 (colored)

rework make documentation to correspond to usual terms (prerequisites
instead of "sources", target rules, makefile names).
document most recent changes.
discussed with jmc@

Revision 1.94 / (download) - annotate - [select for diffs], Fri Sep 21 07:55:20 2012 UTC (11 years, 7 months ago) by espie
Branch: MAIN
Changes since 1.93: +15 -10 lines
Diff to previous 1.93 (colored)

major overhaul of the way make handle jobs, inspired by dpb:
instead of forking a "job" per target, and having that job further fork
separate commands, have make maintain a list of jobs, indexed by pid
of currently running commands, and handle process termination
continuation-style.  This has lots of benefits:
- make is responsible for most printing, so we no longer need pipes nor
job control: make -j jobs see the tty.
- no more special-casing for jobs that don't really execute anything.
- unify code for make -jn and make -B, including signal handlers and
job waiting.  So make -n, make -q, +cmd now run commands in the same
way in all cases.
- unified more accurate error-reporting, as make knows precisely which
command failed. Commands are tagged with their lines, and we display failing
commands in silent mode.
- fine-grained "expensive" command handling (recursion limiter). Do it
per-command instead of per-target.

Moreover, signal response is now simpler, as we just block the signals
in a small critical sections, test for events, and sigpause (thanks a lot
to guenther@ and millert@), so running make is now almost always paused
without any busy-waiting.

Thanks to everyone who tested and gave input.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Apr 11 18:27:30 2012 UTC (12 years, 1 month ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.92: +13 -2 lines
Diff to previous 1.92 (colored)

make has had heuristics to avoid parallel make recursion.
Sometimes they mess up, so add .CHEAP/.EXPENSIVE to explicitly tell make
'hey this is not THAT bad' or 'worse than you think'.
agreed by guenther@, millert@ (and some tweaks)

Revision 1.92 / (download) - annotate - [select for diffs], Mon May 2 11:14:11 2011 UTC (13 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.91: +4 -4 lines
Diff to previous 1.91 (colored)

no need to escape `|'; as discussed with schwartze

Revision 1.91 / (download) - annotate - [select for diffs], Sun Jan 23 20:43:55 2011 UTC (13 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.90: +4 -8 lines
Diff to previous 1.90 (colored)

Remove an ugly workaround that was needed to cope with the 9-argument-limit
of our former groff-1.15.  The workaround relied on undocumented behaviour
of stand-alone .Xo inside .Bd -unfilled; in groff-1.20.1, that undocumented
behaviour is different and the workaround produces wrong output.
Mandoc is happy either way.
While here, remove a useless escape sequence from the next line.
"i guess that's ok" jmc@

Revision 1.90 / (download) - annotate - [select for diffs], Mon Oct 18 14:42:16 2010 UTC (13 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.89: +2 -5 lines
Diff to previous 1.89 (colored)

remove references to now removed usd/psd/smm docs;

Revision 1.89 / (download) - annotate - [select for diffs], Wed Sep 29 07:44:56 2010 UTC (13 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.88: +20 -1 lines
Diff to previous 1.88 (colored)

various EXIT STATUS fixes; from Daniel Dickman

Revision 1.88 / (download) - annotate - [select for diffs], Mon Jul 19 21:43:17 2010 UTC (13 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.87: +20 -2 lines
Diff to previous 1.87 (colored)

document new. hints from jmc@

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jul 19 19:46:44 2010 UTC (13 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.86: +2 -3 lines
Diff to previous 1.86 (colored)

Correct $OpenBSD$ stuff

Revision 1.86 / (download) - annotate - [select for diffs], Thu Feb 4 07:46:20 2010 UTC (14 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.85: +3 -2 lines
Diff to previous 1.85 (colored)

MACHINE_CPU here too;

Revision 1.85 / (download) - annotate - [select for diffs], Wed Feb 3 20:45:44 2010 UTC (14 years, 3 months ago) by miod
Branch: MAIN
Changes since 1.84: +11 -2 lines
Diff to previous 1.84 (colored)

Add a new default variable in Makefile context, MACHINE_CPU. Its value is
decided at compile-time and is either MACHINE_CPU from <machine/param.h> if
it is defined, or the same value as MACHINE_ARCH otherwise.
This will be used to allow ports with suffixes to their canonical MACHINE_ARCH
to provide this canonical name as MACHINE_CPU, and in turn to let Makefiles
do TRT.
ok kettenis@

Revision 1.84 / (download) - annotate - [select for diffs], Tue Feb 10 19:24:17 2009 UTC (15 years, 3 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.83: +4 -3 lines
Diff to previous 1.83 (colored)

STANDARDS:
mark these utilities as being either optional (SD/FR/UP); or as
being compliant only with XPG4 (XSI); strip.1 and talk.1 are tweaked
purely for consistency;

thanks otto for feedback

Revision 1.83 / (download) - annotate - [select for diffs], Sun Feb 8 17:15:10 2009 UTC (15 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few
updates to follow;

Revision 1.82 / (download) - annotate - [select for diffs], Tue Nov 4 07:22:35 2008 UTC (15 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.81: +4 -2 lines
Diff to previous 1.81 (colored)

changes to get target equivalence to work better.
- add new file to create lists of equivalent targets (siblings)
- use that for sequential mode to have much better VPATH support
- separate checking commands from reporting error, for later.
- zap DieHorribly accordingly
- renumber existing flags
- signal_running_jobs() is simpler than pass_signal_to_jobs()
- new debug option -dn for name matching.

Similar code to handle parallel make is still missing.

thanks to Mark, Miod, Theo, Otto, Todd for tests and/or comments.

Revision 1.81 / (download) - annotate - [select for diffs], Mon Sep 1 08:37:45 2008 UTC (15 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored)

section headings do not need to be quoted; from Alan R. S. Bueno

Revision 1.80 / (download) - annotate - [select for diffs], Fri Aug 1 14:19:09 2008 UTC (15 years, 9 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.79: +13 -2 lines
Diff to previous 1.79 (colored)

Document the MAKEFILE variable as unreliable.
ok jmc espie

Revision 1.79 / (download) - annotate - [select for diffs], Mon Mar 3 23:04:33 2008 UTC (16 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored)

tweak previous;

Revision 1.78 / (download) - annotate - [select for diffs], Sun Mar 2 23:56:58 2008 UTC (16 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.77: +17 -1 lines
Diff to previous 1.77 (colored)

document the two big bugs left that somewhat hinder parallel mode.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Dec 1 17:45:02 2007 UTC (16 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

zap trailing whitespace;

Revision 1.76 / (download) - annotate - [select for diffs], Sat Dec 1 15:14:34 2007 UTC (16 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored)

I was sure I had committed this already, grrrr.
Anyways, switch to a growable array for job to do.
Allows us to randomize it.
fix manpage.
do not add delay if just one job to run.

Revision 1.75 / (download) - annotate - [select for diffs], Wed Nov 28 09:40:08 2007 UTC (16 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.74: +16 -2 lines
Diff to previous 1.74 (colored)

debug scaffolding: allows the insertion of a random delay before firing up
jobs in parallel mode.

Revision 1.74 / (download) - annotate - [select for diffs], Sat Nov 3 15:29:29 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored)

remove extraneous space;

Revision 1.73 / (download) - annotate - [select for diffs], Sat Nov 3 11:43:41 2007 UTC (16 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.72: +6 -2 lines
Diff to previous 1.72 (colored)

document that .ORDER only means something in parallel mode

Revision 1.72 / (download) - annotate - [select for diffs], Fri Nov 2 20:30:35 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored)

sort arguments;

Revision 1.71 / (download) - annotate - [select for diffs], Fri Nov 2 17:27:24 2007 UTC (16 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.70: +4 -6 lines
Diff to previous 1.70 (colored)

Work done at p2k7.


This is a really big step towards getting parallel make to work.


Note that this is not yet complete. There are still a few `details' to
fix before this works 100%.  Specifically: sequential make (compat) and
parallel make don't use the same engine, and the parallel engine still
has a few limitations. For instance, some known issues:
- parallel make does not deal with .phony targets correctly all the time.
- some errors are deadly in parallel make mode.
- parallel make NEEDS way more sturdy correspondance of file system paths
and target names, since it often needs to match dependencies to targets
before the corresponding files exist.
- some local variables like $* get set in a bogus way in some cases.
- suffix handling has issues, especially related to the NULL suffix.
So, if you find stuff that does NOT yet work with parallel make, don't go
blindly try to fix the Makefile. It's very likely you might have stumbled
into a make bug. (unless you really, really, understand Makefiles, DON'T
GO CHANGING THEM YET).



Tested by lots of people, thanks go to miod@, and robert@ among other people.

Quick summary of what this does:

- remove `saving commands' extension (it's not really usable, nor used)
- move compat job runner and parallel interrupt handling into engine.c
- tweak the code so that both compat and parallel mode use the same job runner
and the same interrupt handling. Remove the other one.
- optimize job runner so that, in parallel mode, the last command does not
fork if we can avoid it (as it's already running in a sub shell).
- scrape all the code that dealt with creating shell scripts from commands.
- scrape all the code that dealt with recognizing special sequences in
command output to print/not print output.
- fix the parallel job pipe to not keep around file descriptors that are not
needed.
- replace the parallel job buffering with a nicer one, that deals with
non-blocking descriptors to try to agregate as much output from one job in
one go (greed) to unconfuse the users.
- create two pipes per job, so that stdout and stderr stay separate.
- make job token printing a debug option.
- always use the parallel job-runner to `execute' commands, even if we just
print them out.
- store list of errors encountered during parallel make running, and print them
on exit, so that we know what went wrong.
- add a dirty hack to targ.c to deal with paths produced by gccmakedep.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jul 9 14:47:29 2007 UTC (16 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.69: +6 -14 lines
Diff to previous 1.69 (colored)

tweaks;

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jul 8 17:44:20 2007 UTC (16 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.68: +23 -2 lines
Diff to previous 1.68 (colored)

A set of big related changes. okay millert@, tested further by kettenis@
and matthieu@

This all revolves around putting ALL global variables into one single big
hash, and using flags. This removes some impossible to understand stuff,
like old varfind, and allows for some nice stuff.
- each time we reference a global variable, we create it, possibly as a dummy
variable.
- each time we go to the environment, we remember it, thus we no longer go
back to it.

Lists of dependant changes:
- isolate changes to oldVars and checkEnvFirst.
- remove VAR_CMD and VAR_GLOBAL contexts. The only distinction is in parsevar.
Split Parse_DoVar into Parse_DoVar and Parse_CmdlineVar
- rework var modules around obtain_global_var, observe flags in various
functions like Var_Value and Var_Seti.
- Var_Seti/Var_Appendi are almost the same code, use that internally.
- add magic to handle the very special SHELL variable.
- introduce Var_Definedi for the cases where we don't want the actual
value, to simplify tests.
- add keyword .poison, parse it and set global flags accordingly.
- do poison_checks where needed.
- document poison.
- in for loops, set variable temporarily, so that Var_SubstVar will also
substitute it in varmodifiers expressions.

Revision 1.68 / (download) - annotate - [select for diffs], Thu May 31 19:20:13 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

convert to new .Dd format;

Revision 1.67 / (download) - annotate - [select for diffs], Wed May 30 04:41:34 2007 UTC (16 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.66: +9 -3 lines
Diff to previous 1.66 (colored)

- use a consistent text for STANDARDS
- note which options are extensions to POSIX

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jan 12 17:15:59 2006 UTC (18 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.65: +9 -5 lines
Diff to previous 1.65 (colored)

change incorrect FILES entries for makefiles;
problem found by marc balmer;

Revision 1.65 / (download) - annotate - [select for diffs], Thu Dec 29 10:09:51 2005 UTC (18 years, 4 months ago) by jmc
Branch: MAIN
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

correction from ray lai;
ok espie

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jan 15 20:42:49 2005 UTC (19 years, 4 months ago) by mbalmer
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

Operator for comparisons is '==' and not '='.

ok naddy@

Revision 1.63 / (download) - annotate - [select for diffs], Wed Apr 21 13:17:49 2004 UTC (20 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.62: +4 -5 lines
Diff to previous 1.62 (colored)

- correct SYNOPSIS
- add missing options to usage() and slight sync
- point people to psd doc

Revision 1.62 / (download) - annotate - [select for diffs], Sat Mar 13 22:57:09 2004 UTC (20 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

.IT -> .It

Revision 1.61 / (download) - annotate - [select for diffs], Thu Feb 12 14:08:00 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

plural of suffix is suffixes;
idea stolen from a NetBSD PR submitted by Todd Vierling;

Revision 1.60 / (download) - annotate - [select for diffs], Mon Feb 9 00:32:20 2004 UTC (20 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.59: +7 -4 lines
Diff to previous 1.59 (colored)

slight tweaks, ok jmc@

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jan 23 23:08:47 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

`Ns' implies `No', so `Ns No' -> `Ns'; (even simpler in adduser(8))
discussed with todd@

Revision 1.58 / (download) - annotate - [select for diffs], Sat Nov 22 11:52:49 2003 UTC (20 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.57: +16 -16 lines
Diff to previous 1.57 (colored)

:mod, simpler search patterns. Idea from NetBSD.
ok jmc@

Revision 1.57 / (download) - annotate - [select for diffs], Mon Sep 29 11:35:11 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.56: +39 -28 lines
Diff to previous 1.56 (colored)

- add some indent and spacing
- punctuation fixes
- update SEE ALSO

Revision 1.56 / (download) - annotate - [select for diffs], Thu Sep 4 22:14:43 2003 UTC (20 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

put escapes in the right place;
(i.e. stuff I got wrong the first time, or missed)

this includes some .Cd's with missing quotes and .Nm abuse in man4;

Revision 1.55 / (download) - annotate - [select for diffs], Tue Sep 2 18:50:06 2003 UTC (20 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.54: +4 -4 lines
Diff to previous 1.54 (colored)

escape punctuation;
ok deraadt@

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jul 14 12:29:22 2003 UTC (20 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.53: +67 -71 lines
Diff to previous 1.53 (colored)

- .Ql -> .Sq where literal doesn't make sense
- fix the width specifiers in lists/displays
- change the for loop into a display for better formatting

ok espie@

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jun 27 22:01:42 2003 UTC (20 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored)

missing full stop and a .Pp;

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jun 10 09:12:11 2003 UTC (20 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.51: +7 -5 lines
Diff to previous 1.51 (colored)

- section reorder
- COMPATIBILITY merge
- macro cleanup
- kill whitespace at EOL
- new sentence, new line

ssh pages ok markus@

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:12 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.50: +2 -6 lines
Diff to previous 1.50 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Mar 28 09:56:06 2003 UTC (21 years, 1 month ago) by jmc
Branch: MAIN
Changes since 1.49: +17 -17 lines
Diff to previous 1.49 (colored)

little cleanup;

systrace(1) ok provos@

Revision 1.49 / (download) - annotate - [select for diffs], Mon Mar 10 15:37:30 2003 UTC (21 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

these pages all had bad section numbers in the .Xr's;

lots of help and ok millert@

Revision 1.48 / (download) - annotate - [select for diffs], Sun Jan 5 10:10:44 2003 UTC (21 years, 4 months ago) by pvalchev
Branch: MAIN
Changes since 1.47: +13 -13 lines
Diff to previous 1.47 (colored)

Grammar and typo fixes, general language improvements
from jmc@prioris.mini.pw.edu.pl with changes by me

Revision 1.47 / (download) - annotate - [select for diffs], Fri Aug 30 22:59:01 2002 UTC (21 years, 8 months ago) by jsyn
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

okay, I'll bite.  s/sports/supports/ can go in; it's clearer.
from Tomoyuki Sahara <tshr@oak.dti.ne.jp>; nick@ says this looks better, too

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 8 00:14:09 2002 UTC (21 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.45: +14 -2 lines
Diff to previous 1.45 (colored)

.  include,
variable modifiers: standard vs non-standard.

ok miod@, millert@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Apr 16 19:37:16 2002 UTC (22 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.44: +4 -1 lines
Diff to previous 1.44 (colored)

explain how conditionals/includes/loops interact.
ok aaron@

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 23 16:32:16 2002 UTC (22 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

uname(3); hunter@dg.net.ua

Revision 1.43 / (download) - annotate - [select for diffs], Wed Mar 6 17:48:33 2002 UTC (22 years, 2 months ago) by espie
Branch: MAIN
Changes since 1.42: +184 -108 lines
Diff to previous 1.42 (colored)

First step in really explaining what make does, and what's standard,
and what's not.
okay millert@, miod@.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Aug 20 05:57:55 2001 UTC (22 years, 9 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Powered by @mantoya.
o) fix bogus .Xr usage;

millert@ ok.

Revision 1.41 / (download) - annotate - [select for diffs], Sat May 5 12:57:48 2001 UTC (23 years ago) by espie
Branch: MAIN
Changes since 1.40: +11 -4 lines
Diff to previous 1.40 (colored)

Document for loop mechanics for several variables.
Idea taken from NetBSD. implementation completely different,
as our loop implementation diverged a while back.

Revision 1.40 / (download) - annotate - [select for diffs], Thu May 3 14:00:58 2001 UTC (23 years ago) by espie
Branch: MAIN
Changes since 1.39: +24 -20 lines
Diff to previous 1.39 (colored)

Minor manpage tweaks

Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 29 17:15:47 2001 UTC (23 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

Pretty.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Dec 6 20:28:41 2000 UTC (23 years, 5 months ago) by todd
Branch: MAIN
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored)

we actually have useful code for '.for' loops, its not a no-op. ok espie@

Revision 1.37 / (download) - annotate - [select for diffs], Fri Nov 10 05:10:34 2000 UTC (23 years, 6 months ago) by aaron
Branch: MAIN
Changes since 1.36: +27 -27 lines
Diff to previous 1.36 (colored)

- Section shuffling: comply to the section ordering outlined in mdoc(7).
- Some .Nm trimming.
- .Sh AUTHOR -> .Sh AUTHORS
- Other miscellaneous fixes here and there.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 31 21:01:40 2000 UTC (23 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

POSIX rules: pass variables set on the command line to submakes through
MAKEFLAGS

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 6 03:43:35 2000 UTC (23 years, 10 months ago) by aaron
Branch: MAIN
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

Insert missing .El directive; todd@

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jul 1 18:08:43 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Slightly nicer wording: begins by -> begins with

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jun 30 23:26:25 2000 UTC (23 years, 10 months ago) by espie
Branch: MAIN
Changes since 1.32: +18 -9 lines
Diff to previous 1.32 (colored)

Recognize `+cmd' as a command that should always be executed, even in
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.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jun 6 15:32:25 2000 UTC (23 years, 11 months ago) by ericj
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

close pr1260 from danh@nfol.com

Revision 1.31 / (download) - annotate - [select for diffs], Wed Apr 12 21:47:49 2000 UTC (24 years, 1 month ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored)

Trailing whitespace begone!

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 3 02:58:46 2000 UTC (24 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

Junk CDPATH from the environment.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 11 21:40:07 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

Various cleanups and standardizations.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Mar 10 19:07:21 2000 UTC (24 years, 2 months ago) by aaron
Branch: MAIN
Changes since 1.27: +59 -35 lines
Diff to previous 1.27 (colored)

Various cleanups and standardization.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 19 17:28:52 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.26: +13 -6 lines
Diff to previous 1.26 (colored)

.MAIN is nothing special.
Silently ignoring all commands but the first set in a normal dependency
is a generic `feature' of make.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jan 2 15:59:52 2000 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.25: +10 -1 lines
Diff to previous 1.25 (colored)

More bugs... fixes for most pending.
make needs quite a lot more of cleaning up yet.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 26 00:20:33 1999 UTC (24 years, 4 months ago) by espie
Branch: MAIN
Changes since 1.24: +20 -2 lines
Diff to previous 1.24 (colored)

For loops are no longer that bad.
However, I found some more oddities while going through the scanner...

Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 6 22:20:34 1999 UTC (24 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.23: +1 -8 lines
Diff to previous 1.23 (colored)

Fix handling of
VAR!=

specifically, properly distinguish between bad commands and empty results.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Nov 11 11:43:18 1999 UTC (24 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored)

Close bug

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 10 14:11:49 1999 UTC (24 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.21: +1 -4 lines
Diff to previous 1.21 (colored)

Turn on strict-prototypes, add missing prototypes.
Move main prototype to main.c, as this is not used
from any other file.

Close open bug.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Nov 6 14:43:57 1999 UTC (24 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.20: +20 -2 lines
Diff to previous 1.20 (colored)

Document a few of the problems I've found while revamping make.

Temporary solution, until Todd or somebody else *finally* starts reviewing
the first patches of the 20,000 lines diff I currently have...

Revision 1.20 / (download) - annotate - [select for diffs], Sat Sep 25 14:44:00 1999 UTC (24 years, 7 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.19: +5 -1 lines
Diff to previous 1.19 (colored)

Add :L/:U modificators (lowercase/uppercase)
To use to get ports building more user-friendly.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jun 5 01:21:33 1999 UTC (24 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.18: +109 -96 lines
Diff to previous 1.18 (colored)

- remove trailing white space
- 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... :/

Revision 1.18 / (download) - annotate - [select for diffs], Sun May 16 21:53:31 1999 UTC (25 years ago) by espie
Branch: MAIN
Changes since 1.17: +94 -27 lines
Diff to previous 1.17 (colored)

More special targets documentation.

More odd behavior (filed as `bugs' in some cases...)

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 17 17:35:01 1999 UTC (25 years, 2 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.16: +20 -1 lines
Diff to previous 1.16 (colored)

Document known problem and work-around, until I manage to get it fixed.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 23 18:24:51 1999 UTC (25 years, 3 months ago) by espie
Branch: MAIN
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (colored)

Document the other side of .MAIN

Revision 1.15 / (download) - annotate - [select for diffs], Sat Dec 5 00:06:28 1998 UTC (25 years, 5 months ago) by espie
Branch: MAIN
Changes since 1.14: +83 -16 lines
Diff to previous 1.14 (colored)

Modifications from netbsd:
- 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.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 26 19:55:05 1998 UTC (25 years, 7 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.13: +36 -32 lines
Diff to previous 1.13 (colored)

usr.bin/ man page fixes, f-m.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 5 17:41:47 1998 UTC (25 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

more man page repairs; aaron@ug.cs.dal.ca

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 28 12:41:51 1998 UTC (26 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.11: +6 -4 lines
Diff to previous 1.11 (colored)

Use BSDmakefile in favour of [mM]akefile if existent.  Good for
cases where you want BSDmake specific facilities not messing up other
implementations of make

Revision 1.11 / (download) - annotate - [select for diffs], Thu Sep 18 14:12:37 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

environment variables

Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 1 07:28:15 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.9: +56 -14 lines
Diff to previous 1.9 (colored)

Sync with NetBSD (mostly by christos initial substitution/regexp from Der Mouse)

- 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.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Nov 30 21:08:59 1996 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.8: +60 -25 lines
Diff to previous 1.8 (colored)

Sync with NetBSD:
- 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.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Sep 21 10:53:48 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.7: +23 -1 lines
Diff to previous 1.7 (colored)

document special MAKEOBJDIR/obj.$MACHINE/obj behaviour of make

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 2 16:04:13 1996 UTC (27 years, 8 months ago) by briggs
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored)

Sync up with NetBSD:
(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.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 27 19:32:37 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.5: +7 -1 lines
Diff to previous 1.5 (colored)

From NetBSD: merge of 960317

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 23 18:32:57 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
Changes since 1.4: +12 -2 lines
Diff to previous 1.4 (colored)

Implement an -m option used for replacing /usr/share/mk with a
custom search path, like $DESTDIR/usr/share/mk

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 17 13:42:00 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +21 -1 lines
Diff to previous 1.3 (colored)

from christos:
- Added .WAIT to synchronize between sources like other pmake variants.
- Updated documentation to include .ORDER .PARALLEL .NO_PARALLEL .NONPARALLEL

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 14 03:23:34 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +9 -4 lines
Diff to previous 1.2 (colored)

from christos@netbsd:
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.)

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 8 19:48:10 1995 UTC (28 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

s/environmental/environment/

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:43 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:43 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.