Commit Graph

197 Commits

Author SHA1 Message Date
espie
821242006f Clean do-fetch target: it can depend on the files it's trying to fetch.
Plays some make trickery to get all details correct.
Numerous benefits:
- make automatically handles badly fetched files,
- possible extension to special-case *each* file fetch,
- can be easily parallelized.

Similar rules for fetch-list soon coming.

Also simplify CDROM handling while we're at it, no need for 10 knobs
when one suffices.
1999-12-24 00:27:58 +00:00
espie
ffdd2ed285 Wrap MASTER_SITESn/PATCH_SITESn into a .for loop.
Don't bother computing MASTER_SITESn/PATCH_SITESn if they're not
set in the first place...
1999-12-21 21:43:37 +00:00
espie
0d89aad7ef Deprecate DO_NADA 1999-12-20 19:02:37 +00:00
espie
089030e769 Clean up _PORT_USE, so that it does not depend on what's being made.
fetch can depend on real-fetch directly, since it does not involve
cookies.
1999-12-20 00:07:17 +00:00
espie
469acd4ed9 Changes tests of IGNORE/NO_IGNORE so that
`main' targets (checksum, fetch, extract...) are always defined.

This removes the possibility of erroneously overriding them.

Dependency fix:
- move the NO_xxx test to the _xxx_COOKIE target, so that each cookie
is built at exactly one point in the Makefile.
- separate phony targets from the real thing:
`top' dummy targets (e.g., build)  depend on the corresponding cookie,
cookies depend on each others and each cookie does trigger the real targett
(unless NO_xxx) before creating the cookie.

This does repair parallel makes, which were completely broken.

Might induce problems into odd-balls ports, but I couldn't get anyone to
comment on this patch after a week on ports@ and tech@.

Maybe, if something breaks, I'll finally get some comments...
1999-12-19 23:48:36 +00:00
espie
f0ac2fb53b Use IFS to parse PATH instead of ludicrous echo $PATH|tr 1999-12-11 16:14:20 +00:00
espie
88c2b83d49 Make cookie names internal to bsd.port.mk
Don't allow the user to override these. It's a major can of worms anyway.
1999-12-08 17:11:09 +00:00
espie
c4a330bf2b Pass YACC to configure script.
Ensure reproducability of builds for autoconf ports: those would tend
to use bison by default otherwise.
1999-12-08 17:00:15 +00:00
espie
09dcbf4eb0 Kill a few extraneous for loops. 1999-12-03 17:37:33 +00:00
espie
7e4de2c7c4 Streamline checksum verification, remove awk use. 1999-12-03 17:30:47 +00:00
espie
1770d2d1b6 Simplify cipher usage slightly 1999-12-03 17:20:02 +00:00
brad
79b5f71811 fix typo with recent ${AWK} -> awk change, needed a space added in 1999-12-03 16:54:42 +00:00
espie
5e4ddb8ec0 Introduce _MAKE_COOKIE, rename CIPHERS to _CIPHERS (and change it).
Deprecate a whole slew of unneeded variables.
1999-12-03 14:57:12 +00:00
espie
88d4502064 Kill USE_EGCC/USE_EGXX, since 2.6 includes both as standard compilers. 1999-12-03 14:24:38 +00:00
ian
6ad4086728 Less verbose. 1999-12-01 22:39:44 +00:00
ian
32d5d70d09 Have delete-package-link function correctly even if ${PACKAGES} is itself
a symlink (ok espie).
1999-12-01 22:35:54 +00:00
espie
12d7c97fc6 Use _ALWAYS_DEP & friends pervasively.
Rename SORT_DEPENDS to _SORT_DEPENDS, nothing but us does need it anyway.
1999-12-01 13:36:50 +00:00
espie
3374f661ba Prefer sh builtins to a dubious `optimization' 1999-11-29 23:14:03 +00:00
espie
ba2e23f4fb Vi commodity fix: default sw=4 to the same as ts while we're at it. 1999-11-28 14:14:58 +00:00
espie
409c763512 Kill opsys cruft. 1999-11-28 14:12:24 +00:00
espie
a4e97990a9 Uniformize: everything else uses :L. 1999-11-27 13:17:13 +00:00
espie
3431057fa4 Oops. 1999-11-24 01:18:57 +00:00
espie
5643e9ca49 Typo
Surprising nobody saw it before...
1999-11-24 00:56:52 +00:00
espie
498376f7a5 Kill some extra shells that are not needed.
Note that

if ! (cmd1 && cmd2) then
cmd
fi

can be replaced with

if cmd1 && cmd2 then :
else
cmd
fi
1999-11-23 15:06:14 +00:00
espie
5642444dae Use echo directly, except where ECHO_MSG makes sense.
Clean up error conditions somewhat.
1999-11-22 23:44:01 +00:00
espie
e0f299c92c Robust subdir substitution.
dugsong@ agrees that @ is a better choice.
1999-11-22 20:40:53 +00:00
espie
aaa04faba2 Simplify make fetch-list by using _ALWAYS_DEP and friends.
Remove some extraneous subshells.
Remove unwanted variables.
1999-11-22 20:37:04 +00:00
espie
5e1ecf9a5e Simplify CATPAGES 1999-11-22 20:34:14 +00:00
espie
dc7126a53b Typo 1999-11-21 16:18:30 +00:00
espie
5f45a616e7 Revert unwanted commit... 1999-11-20 17:56:57 +00:00
espie
211653ece7 Blast DEPENDS_TMP .USE macro out of existence.
The problem with .USE macros is that they should be constant...
If they do depend on the target being made, they will invariably use
.if make(TARGET) tests.   But this is a bad idea, as then `TARGET' can't
be used as a true dependency, since it's not being made then...
So instead, one would have to remember to fork another make TARGET to
ensure the .USE macro is executed correctly... This is slow, and
error-prone.
1999-11-20 17:54:09 +00:00
espie
dd10aadc45 Fix recursive dependency computation. 1999-11-15 18:37:58 +00:00
espie
f8011ef237 - introduce some internal variables to help recursive dependencies targets
be readable.
- kill some usage of ${ECHO} and ${TR} that is nonsense... there's no
reason to tweak those.

rohee@ agrees...
1999-11-10 13:46:40 +00:00
espie
987b69ae61 _VARIABLES are off-limit to individual ports.
Say so, explicitly.
1999-11-05 22:44:34 +00:00
espie
3b0d6e7b65 - OPSYS is OpenBSD, no need to fire uname.
- Write .PHONY targets explicitly.
1999-10-29 20:28:33 +00:00
espie
719753df9a Slight speed-up, trim external unames. 1999-10-27 12:48:40 +00:00
espie
f0d6e985c6 Document what currently exists 1999-10-26 15:38:06 +00:00
espie
577a67662a use tar's q flag for speed 1999-10-26 15:37:42 +00:00
espie
c20b543b86 Fix typo.
No port subdir overrides those targets yet, but this wouldn't have worked
anyway.
1999-10-26 14:50:05 +00:00
espie
0f1986d4a9 Fix a reeeally old buglet.
make has been passing around its flags in MAKEFLAGS since
at least 1996... so passing them explicitly around means we
duplicate them.

This avoids the make -k -k -k -k -k -k -k -k -k   syndrome
that turans@ has noticed
1999-10-08 11:38:05 +00:00
espie
5dc30c71db Tweak the packaging slightly 1999-10-07 14:22:36 +00:00
brad
c863ae39aa clarify usage of USE_AUTOCONF/GNU_CONFIGURE/HAS_CONFIGURE 1999-10-05 00:00:38 +00:00
espie
50a55ee199 Name says it all 1999-10-01 22:11:06 +00:00
espie
84931ee9de - don't display `creating README.html for...', the subdir macros
already swamp us with information.
- perform the same optimization for README.html, namely don't invoke
depends-list and package-depends if they're known not to be needed.
1999-09-30 21:07:09 +00:00
espie
b4e40a2276 print-depends-list and print-package-depends need similar checks, so
they must appear before the default depends targets are generated.
1999-09-30 17:34:22 +00:00
espie
33dc99a6a8 More correct check for describe target... .e.g., if we have special depends
target, shortcuts can't be taken.

This involves moving those default target around so that they appear AFTER
describe.

Note that these tests mean ANYTHING adding to *_DEPENDS *MUST* come before
the targets that test these for bsd.port.mk to work...
1999-09-30 17:28:31 +00:00
espie
d2a021e801 Replace some external sed with internal :C modifiers in the dependencies
computation, which is the place where lots of forking happened.

5% faster at make index.
1999-09-30 16:56:16 +00:00
espie
4e966a4c4e Slightly better use of _DEPEND_ECHO 1999-09-30 16:35:40 +00:00
espie
f150f37eb3 Common case is for ports not to have dependencies.
The `pname hack' already catered to some of that (only computing the
package name if dependencies exist)

This removes the hack and simply optimize dependency computation out of
existence if it's not needed.

Improves make index time by >15%.
1999-09-30 16:24:47 +00:00
espie
cf61e9d7a7 Add packages by popular and godly demand.
Ditch wget, as gimp got rid of it.
1999-09-28 21:55:25 +00:00