Commit Graph

86 Commits

Author SHA1 Message Date
espie
7f62033c1e zap duplicate lines 2007-06-03 22:25:01 +00:00
espie
1196a0d7f3 reorganize to avoid repeating lists of targets:
classify stuff that is used in bsd.port.subdir.mk, name them in pkgpath.mk,
and use them as .PHONY targets in both bsd.port.mk and bsd.port.subdir.mk.
2007-06-03 12:51:59 +00:00
espie
e55de40a3f handle exact matches on STARTDIR.
allows `partial' STARTDIR, such as make describe STARTDIR=x11/kde
to work as expected.
2007-04-28 10:19:41 +00:00
espie
04b97b2f22 STARTDIR functionality: allows one to skip directly to a given directory
and start from there.
2007-04-07 09:55:13 +00:00
espie
bc0a71b1bb remove stupid hack that makes _print-packagename display README on
subdirs. Confuse the hell out of broken dependencies, and is not
even needed.

fix typo.
2007-03-19 21:32:35 +00:00
espie
5efd6b68e4 duplicate the print-plist targets, add a version -with-depends, which is
slower, but shows dependency lines as well...

Also fix target evaluation to work like it does elsewhere
2006-12-18 12:52:34 +00:00
espie
26075e9de6 move TMPDIR to pkgpath.mk to allow its use from both bsd.port.mk and
bsd.port.subdir.mk

Use absolute paths to build readmes files, based on READMES_TOP, which
can be (or not) PORTSDIR.

Generate category readmes in tmp directory as well.

minor clean-ups
2006-12-02 11:27:46 +00:00
espie
926c904147 same formatting clean-up as bsd.port.mk 2006-11-27 15:38:01 +00:00
espie
1ef50b337c avoid ignoring ports while running a `describe' target.
triggered by setting DESCRIBE_TARGET=Yes in bsd.port.subdir.mk
2006-11-13 13:55:10 +00:00
espie
7564143ca2 shorten dependency names, so that regress and run can share.
add print-plist-all, for better introspection (to be used by pkg_mklocatedb).
2006-11-11 16:10:36 +00:00
espie
7be15550f4 add regress-dir-depends/full-regress-depends, similar mechanism to
run-depends, only the basic test changes.
2006-11-05 15:46:51 +00:00
espie
a80884552e Allows calling print-plist from main Makefile 2006-10-15 09:48:05 +00:00
espie
dd168a8754 introspection mechanism: dump-vars 2006-07-09 11:10:16 +00:00
espie
ee210c3e4e move REPORT_PROBLEM to pkgpath.mk so that we can use it from bsd.port.mk
as well.

Add the target to the default problem reporter.
Report problems while building dependencies.
2006-07-08 09:20:30 +00:00
naddy
f3521c1b69 propagate name change of loop variable to shell fragment 2005-11-10 15:11:12 +00:00
espie
005b234dc8 streamline flavor_fragment after trying to explain it to sturm@.
it makes more sense to have a subdir variable as input, split it
into toset and dir as output, and to unsetenv FLAVOR SUBPACKAGE along
the lines.

End result should be equivalent, but slightly more readable.

no objection from my neighbors either...
2005-11-02 20:30:12 +00:00
espie
202146d6ab add print-package-signature
suggested by bernd@
2005-09-23 08:26:21 +00:00
espie
26181a5f81 add REPORT_PROBLEM_LOGFILE, okay naddy@ 2005-04-19 08:55:32 +00:00
espie
45ac58f0f3 newlib-depends-check recurses as well 2004-11-21 11:28:31 +00:00
espie
e39dc1ae33 mark update as .PHONY target, necessary with UPDATE_COOKIES_DIR ;-) 2004-11-15 13:53:43 +00:00
espie
f2ae2fd4b7 allows it to recurse. 2004-11-10 10:23:42 +00:00
sturm
82dfd19593 add 'patch' to handled targets 2004-09-26 09:59:14 +00:00
espie
c35cfd38ae silence echo in recursive work, so that tsort no longer sees confusing
===> directory entries.
2004-04-07 13:06:33 +00:00
espie
39171fc37f update .PHONY list to match reality. 2003-08-15 00:35:10 +00:00
espie
08fa6014ce advisory license-check: warns if a package is apparently built from bad
sources.  Will returns some false positives.
2003-08-11 20:10:41 +00:00
espie
c75167d854 Fix INDEX building. Trickery that allows ECHO_MSG='echo 1>&2' to work again. 2003-08-08 23:56:13 +00:00
espie
7e71f84147 kill .USE, use common shell code instead. 2003-08-04 15:05:24 +00:00
espie
c07bda5739 oops, make sure SKIPPED is set immediately, otherwise it won't show. 2003-08-04 14:54:29 +00:00
espie
4fb6f7fb2a smart recursion over clean depends. 2003-08-04 14:45:31 +00:00
espie
63adb1a923 let *-dir-depends recurse globally, with one single file. 2003-08-04 14:37:48 +00:00
espie
df3c9aa7ce zap old targets and add new ones. 2003-08-04 14:16:53 +00:00
espie
1ee70309ea oops 2003-08-04 13:31:26 +00:00
espie
0f9ceae51e kill old readme (useless distinction).
Let make clean=readmes work.
2003-08-04 13:25:36 +00:00
espie
89a58c808d Fix SKIPDIR handling.
Make various variables not public.
Remove PORTSDIR definition, it's alredy in /usr/share/mk.
2003-08-02 09:58:11 +00:00
espie
9a700ec7a5 put _flavor_fragment into a separate file, that's included from both
bsd.port.mk and bsd.port.subdir.mk. Make sure flavors are properly
separated.

Change the way bsd.port.subdir.mk works, slightly: always set full directories.
- SKIPDIR with full paths will work.
- all dirs are displayed as full package specs.

Generate complete html files.
2003-08-02 09:53:27 +00:00
espie
d426e175d7 restore install 2003-07-29 22:27:09 +00:00
espie
bb5f00f090 kill lots of if !target.
Kill targets that don't apply to ports.
2003-07-18 18:18:15 +00:00
espie
a63ca19a8c Display something useful when a package location has been specified wrong. 2003-02-16 15:16:17 +00:00
naddy
a152719172 Rename DUDS to SKIPDIR for consistency with the base system; ok espie@ 2002-10-24 23:14:40 +00:00
avsm
97d7fd758e remove an unnecessary check for NetBSD
ok espie@
2002-08-29 18:35:40 +00:00
espie
5c6c013651 kill bulk-packages. Use `make package BULK=Yes' instead.
The main advantage is that workdirs are cleaned up as soon
as package is built (or installed), not later.
2002-04-17 15:58:48 +00:00
espie
ddaac90cab Add a target to check that makewhatis will build correct index entries. 2002-04-02 15:55:55 +00:00
espie
9775511ef0 Add rules to create a list of homepage links for all ports. 2002-03-13 13:51:59 +00:00
espie
5906a566ef First cut at a lib-depends checker: this version does use WRKINST instead
of the actual package, so it WILL get things wrong in some multi-packages
case.
2001-10-24 11:57:34 +00:00
espie
975eb63fc2 bulk-do, a slightly more generic version of bulk-packages 2001-10-24 11:47:41 +00:00
todd
16bf411ce4 add regress, ok espie@ 2001-10-08 22:04:43 +00:00
espie
c191588f7f Change WRKDIR name, to flatten things somewhat.
work-* is too long, because we want to include the PKGNAME in the dir name
(so that PKGNAME changes are less likely to work with old work directories)

Change the way clean works, so that you can say
make clean='dist depends packages' and have it do what you think it should
do.

Common fragment to _create_wrkobjdir.

Put some info into PACKAGING (name of subpackage being built)
2001-08-16 14:49:31 +00:00
espie
19d7809002 Lots of internal changes.
- define _FULLPKGNAME* and _PKGFILE*. Use _PKGFILE* as package cookie
instead of package_done.
- use ${PKG_DBDIR}/${_FULLPKGNAME${SUBPACKAGE}/+CONTENTS as install cookie.

- BIN_PACKAGES variable. If set to yes, remove coupling between
PACKAGE_COOKIE and dependencies, so that binary packages exist
independently of working directories.

- mark packages as precious.

- change all refs to PKGFILE to _PKGFILE${SUBPACKAGE}.
- add bulk-packages target.

Note that BIN_PACKAGES and TRUST_PACKAGES are off by default.
This interface is likely to change. The name bulk-packages will probably
change as well.

We will probably get rid of the old PKGFILE/FULLPKGNAME (taking SUBPACKAGE
into account) and use the new PKGFILE/FULLPKGNAME
PKGFILE-foo/FULLPKGNAME-foo instead (with explicit subpackage information).
This is less confusing and simpler.
2001-07-30 14:13:16 +00:00
espie
27a4fede8b REPORT_PROBLEM for non-existent dirs. 2001-04-20 15:00:04 +00:00
espie
701a95b5b2 Misc. small tweaks.
- let USE_MOTIF be sensible: any, openmotif, lesstif.
any triggers a lesstif flavor.
- show=name as a shortcut.
- package-dir-depends to check that packages are okay.

- error message for non-existent dirs.
2001-04-18 14:43:55 +00:00