1 # $NetBSD: Makefile,v 1.83 2007/06/19 22:30:33 wiz Exp $
3 # This is the top-level Makefile of pkgsrc. It contains a list of the
4 # categories of packages, as well as some targets that operate on the
7 # User-settable variables:
10 # (See mk/defaults/mk.conf)
16 # The specific packages that are to be built.
18 # XXX: Why are there four distinct variables? The same could be
19 # achieved using just SPECIFIC_PKGS as the list of packages and
20 # leaving the remaining details to the user.
26 # Note: The tools definitions must come before bsd.prefs.mk is included.
28 # tools used by this Makefile
29 USE_TOOLS+= [ awk cat cmp echo env expr false fgrep grep mv rm sed \
32 # additional tools used by bsd.pkg.subdir.mk
33 USE_TOOLS+= basename touch
35 # additional tools used by bsd.bulk-pkg.mk
36 USE_TOOLS+= egrep find ls sh tee true tsort
40 .include "mk/bsd.prefs.mk"
42 .if defined(SPECIFIC_PKGS)
43 SUBDIR+= ${SITE_SPECIFIC_PKGS}
44 SUBDIR+= ${HOST_SPECIFIC_PKGS}
45 SUBDIR+= ${GROUP_SPECIFIC_PKGS}
46 SUBDIR+= ${USER_SPECIFIC_PKGS}
48 # Packages in the x11 category tend to require a lot more parse time
49 # than the rest of the packages. Reorder it to the beginning to avoid
50 # stalling parallel scans near the end of a run.
85 #SUBDIR+= regress # regression tests must be started manually
95 SUBDIR+= ${USER_ADDITIONAL_PKGS}
97 .include "${.PARSEDIR}/mk/misc/toplevel.mk"