--- wikisrc/pkgsrc/targets.mdwn 2010/12/11 18:45:45 1.3 +++ wikisrc/pkgsrc/targets.mdwn 2010/12/11 18:56:42 1.4 @@ -8,6 +8,7 @@ only few of them are useful for regular The following targets may be useful to invoke from keyboard: +* "depends" to build and install dependencies * "fetch" to fetch distribution file(s) * "checksum" to fetch and check distribution file(s) * "extract" to look at unmodified source @@ -23,6 +24,12 @@ The following targets may be useful to i * "install" to install package * "bin-install" to attempt to skip building from source and use pre-built binary package +Cleanup targets (in separate section because of importance): + +* "clean-depends" to remove work directories for dependencies +* "clean" to remove work directory +* "distclean" to remove distribution file(s) + The following targets are useful in development and thus may be useful for an advanced user: * "makesum" to fetch and generate checksum for distributed file(s) @@ -33,6 +40,7 @@ The following targets are useful in deve For example, package updating looks like this:
+su root -c "make depends clean-depends clean" # to catch new dependencies rm -f distinfo && su root -c "make makesum clean" && make makepatchsum make clean && make stage-install # build # modify patches