summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.subdir.mk
AgeCommit message (Collapse)AuthorFilesLines
2008-10-14Remove rules named after subdirectories. Proposed on Oct 08 on tech-pkgjoerg1-9/+1
as it breaks having subdirectories named like main pkgsrc targets.
2007-10-13Fix the .include lines so that make looks in the right place first.dsl1-2/+2
Remember .include "foo.mk" is looked for (first) in the directory that contains the makefile being processed (like in C), so remove all the ${.PARSEDIR} and ../ sequences that just cause grief.
2007-08-13Added mk/misc/category.mk, which contains the definitions that are onlyrillig1-41/+1
useful for category Makefiles, as opposed to bsd.pkg.subdir.mk, which is also relevant for the top-level directory. Adjusted the category Makefiles.
2007-08-13Moved the stuff that is common to all directories of pkgsrc into its ownrillig1-13/+2
file. Now "make help" can be called from the top-level directory, avoiding to parse lots of buildlink3.mk files just to get some help.
2007-05-09Add two targets, pbulk-index and pbulk-index-item.joerg1-2/+2
pbulk-index-item prints a number of variables used by the parallel bulk build code during either the build, the report or the upload phase. pbulk-index checks whether multiple versions of the current package could be build (e.g. because multiple Python versions are supported) and uses pbulk-index-item for each possible combination. Thanks to David Laight for explaining the different between using :[#] in the body of a make target and in a clause of an .if. Powered-by: Google SoC 2007.
2006-07-27Whenever we invoke a recursive make, we need to ensure that the properjlam1-11/+11
environment ${PKGSRC_MAKE_ENV} is also passed along. Create a convenience variable RECURSIVE_MAKE that does exactly this and that can be used in place of MAKE when invoking make recursively. Use RECURSIVE_MAKE everywhere in pkgsrc/mk that we invoke make recursively.
2006-05-29Don't test existence of a file, touch it and compare the content,joerg1-3/+2
but compare the content only if the file existed in first place.
2006-05-23Resolve misunderstanding with jlam, show-subdir-var works likejoerg1-2/+2
show-var, but doesn't recurse.
2006-05-22Add show-subdir-var to get the value of SUBDIR of the top-level andjoerg1-1/+4
category Makefiles.
2006-01-29add a missing .PHONY: Now if you do something likedmcmahill1-1/+2
cd pkgsrc/foo touch fetch make fetch you get the correct behaviour.
2005-11-14Removed trailing white-space.rillig1-4/+4
2005-11-09Add 'check-vulnerable' to the list of recursive targets.erh1-1/+2
2005-05-23Fixed the bug that I introduced with the last commit. I confused -n and -z.rillig1-2/+2
2005-05-23Fixed quoting in show-comment.rillig1-3/+3
2005-02-22Pass "makedistinfo" down as one of the inherited targets.agc1-6/+5
2004-04-07There is no need to use "echo -n" in production of HTML.tv1-2/+2
2003-09-06Also descend to sub directories for make lintcjep1-1/+2
2003-07-14"make update" works fine for me with SPECIFIC_PKGS=1, so enable it and the ↵bad1-1/+2
"clean-update" target.
2003-03-20remove incorrect usage of README.html.BAK files. With this change,dmcmahill1-6/+4
1) an extra /usr/pkgsrc/README.html.BAK file is not created 2) we ensure that when a README.html file doesn't change, we don't touch it. The prior version of this file caused the timestamp to change.
2003-01-15Make BUILD_DIR always point to a physical path by invoking /bin/pwd insteadjlam1-2/+2
of relying on the shell's builtin pwd. This makes BUILD_DIR consistently point to the correct directory regardless of the definition of SHELL. This fixes elusive some buildlink2 errors due to the fact that BUILDLINK_DIR is derived from BUILD_DIR and some paths were incorrectly being translated.
2003-01-05Switch the top level pkgsrc 'readme' and 'cdrom-readme' targets to use thedmcmahill1-3/+5
new and much more efficient code. Previously a 'make readme' took over 3 weeks on my SS5 and now takes < 3 hours. The number of make calls has been reduced from somewhere over 1,000,000 to one per package which is around 3,000. The mk/scripts/mkreadme script does all the work now. This script has been used in standalone form for a month or two on ftp.netbsd.org and has had no problem.
2002-10-20Use :Q to quote COMMENT. Proposed by Alan Barrett.wiz1-2/+2
2002-05-29Remove STRIPFLAG to fix pkg/15467.yyamano1-10/+1
It was replaced with _STRIPFLAG_INSTALL and moved to defs.*.mk.
2002-03-04Generalize the handling for packages where "fetch" and "fetch-list"fredb1-1/+2
only emit a message and don't actually fetch anything. This allows us to make the output of "fetch-list" for these packages consistent with other packages. While we're in here, integrate DYNAMIC_MASTER_SITES with the ${ORDERED_SITES} macro. The only functional change here is that ${MASTER_SITE_OVERRIDE} is now respected. Still to do -- something appropriate for "fetch-list" for these packages, like sourcing "getsites.sh" into the generated script. (Well, "package", but there are two others that do something similar in their "Makefile".) Also eliminate the misbegotten _FETCH_ALLFILES macro -- now that only "fetch" uses it, move it's functionality directly under "do-fetch".
2002-02-28Comprehensive update to the fetch-list target (and friends), incorporatingfredb1-2/+44
many suggestions made by Bernd Ernesti on "tech-pkg". Closes PR pkg/15539. - - Partially revert 1.895, which made 'fetch-list' ape 'fetch', so instead check if a file exists on the building host before emitting anything for it into the generated script. Update to use the new 'fetch' procedure on the fetching host, once it is determined that the file is needed, and generally clean up the output, so that it's a human readable shell script with comments. - - Introduce utility target 'show-all-depends-dirs', to do the necessary recursing over dependencies quickly and correctly. Add a couple of variations to show how it's done, and bracket the whole thing with ".if make()", so it's invisible to the dependency graph for all the other targets. The key improvement over the old way, is that it utilizes an "awk" associative array to guarantee that no package subdirectory is visited twice. For the package with the hairiest dependency graph, "x11/gnome", this leads to something like a 1,000-fold improvement! - - "sort -u" over the result of 'fetch-list-one-pkg' goes bye-bye. The new "awk" post-processor begins emitting output as soon as there is a file to fetch, so the user doesn't have to wait for the whole thing to finish before he sees anything. - - Get rid of the old hook for non-recursing for a top-level 'fetch-list', which was never used. Previously, a top-level 'fetch-list' couldn't work anyway, because the progress reports ruined the shell script. Remove 'fetch-list' from the targets that recurse from the top, and instead use a different 'fetch-list' target in "bsd.pkg.subdir.mk" to do the right thing. Currently, that right thing includes recursing in the single-category case, or if ${SPECIFIC_PKGS} is set, and not recursing in the top-level, all packages case (where it would be perfectly pointless).
2001-11-28lose some more pkg/ referencesabs1-5/+5
2001-10-26Add a new "show-vars" target which allows to display several makefiletron1-2/+2
variables at once.
2001-03-06Back out that part, not intended to be committed just yetwiz1-2/+2
2001-03-06Move PKGTOOLS_VERSION check to bsd.prefs.mk for speedups in recursive tree ↵wiz1-2/+2
walks.bsd.pkg.mk bsd.prefs.mk Bump required version number of PKGTOOLS to 20010306 for the latest bugfixes and the -V option support.
2001-02-16Change COMMENT handling:wiz1-8/+14
COMMENTs are now a variable in the Makefile instead of a pkg/COMMENT file. The COMMENT var should be in the maintainer block after the homepage. Modify bsd.pkg.mk, pkglint, url2pkg, and port2pkg (last one untested) for the new behaviour. Document new state in Packages.txt. This should save lots of inodes, and lots of time when untarring/updating. Idea by Alistair Crooks. For the time being, accept pkg/COMMENT instead of a COMMENT var to avoid a flag day.
2001-01-13Add "show-var" to the list of recursable targets.tv1-2/+3
2000-07-28Add bulk-package and bulk-install targets so people can invoke thesehubertf1-3/+3
in pkgsrc or pkgsrc/category now. The install and package targets are still left in, but deprecated now.
2000-06-03/bin/echo -> echo. This file appears to have NetBSD-specific paths already,mycroft1-2/+2
so I'm not worried about .ifdefing it at the moment.
2000-06-03Pass down ${MAKEFLAGS}.mycroft1-13/+9
2000-05-29Garbage collect.hubertf1-10/+4
Now that the procedure for building in a package and in a category is the same, there's no longer any need to differentiate between the two cases.
2000-05-28Do not abort compilation of several categories if building a single categorydmcmahill1-2/+2
fails.
2000-05-11Define a new target, "show-pkgsrc-dir", which prints the directoryagc1-3/+3
from which an installed package can be re-installed. This can be used to build up a list of host specific packages, which is useful, for example, in re-building all packages on a machine for a.out to ELF transition.
1999-12-15Fix off by one count of packages in a category in README.htmlabs1-2/+3
1999-12-06Add total number of packages to the category README.htmlabs1-6/+9
1999-07-09Pass the makepatchsum target down to submakes.agc1-1/+2
1999-07-02Add a show-downlevel target, which shows output of the form:agc1-4/+6
... ===> package security/sudo sudo package: sudo-1.5.7p4 installed, pkgsrc version sudo-1.5.9p1 ===> package security/tripwire ===> category shells ... for installed packages whose version does not match that in pkgsrc. No output is produced if the package is not installed. This allows an easy overview of the packages installed on a machine which need to be upgraded. Also make minor modifications to the SUBDIRUSE target for Solaris.
1999-06-28Add a "show-distfiles" target, used to show the distfiles and patchfilesagc1-1/+18
(including any subdir) for a package. If ${IGNORE} is set, for any reason, do not print anything. The output is relative to ${DISTDIR}. This target can be used to identify out of date distfiles and patchfiles in ${DISTDIR}, in conjunction with suitable filters.
1999-05-17Define "${ECHO_MSG}" so that the patch from PR pkg/7545 doesn't breaktron1-1/+2
(at least) a recursive "make clean".
1999-05-17Fix broken index file creation. Patch suppled by NAKAJIMA Yoshihirotron1-6/+6
in PR pkg/7545.
1999-03-28DUDS is expected to be a a make variable, not a shell variablehubertf1-2/+2
1999-02-22Comment that targets listed in $PKG_MISC_TARGETS are also regardedhubertf1-2/+2
1999-02-21Pull in mk.conf (via bsd.pref.mk), so that e.g. PKG_MISC_TARGETS canhubertf1-1/+11
be set there.
1998-12-29Add "cleandir" target.tron1-4/+4
1998-12-06Add support for custom, per-category targets by setting PKG_MISC_TARGETShubertf1-2/+2
This can be used to - enable execution of a non-standard target for all pkgs of a category, e.g. cd pkgsrc/benchmarks ; make benchmark - superceding standard-targets with custom versions, e.g. from /etc/mk.conf
1998-09-23Add a cdrom-readme target, a clone of the readme target, for ease of use.agc1-27/+35
The URLs in the generated README.html files can be specified by overriding the CDROM_PKG_URL_HOST and CDROM_PKG_URL_DIR definitions. Document the targets, and clean up some English, in Packages.txt