Diff for /wikisrc/pkgsrc/targets.mdwn between versions 1.5 and 1.8

version 1.5, 2010/12/11 21:21:43 version 1.8, 2011/02/07 04:17:45
Line 2 Line 2
   
 It was proposed that we document _all_ pkgsrc targets,  It was proposed that we document _all_ pkgsrc targets,
 but this is unreasonable and useless.  but this is unreasonable and useless.
 Most targets are ancilliary ones,  Most targets are ancilliary ones;
 they exist because that's how make(1) works,  they exist because that's how [[!template id=man name=make section=1]] works.
 only few of them are useful for regular work.  Only few of them are useful for regular work.
   
 The following targets may be useful to invoke from keyboard:  The following targets may be useful to invoke from keyboard:
   
Line 29  Cleanup targets (in separate section bec Line 29  Cleanup targets (in separate section bec
 * "clean-depends" to remove work directories for dependencies  * "clean-depends" to remove work directories for dependencies
 * "clean" to remove work directory  * "clean" to remove work directory
 * "distclean" to remove distribution file(s)  * "distclean" to remove distribution file(s)
   * "package-clean" to remove binary package
   
 The following targets are useful in development and thus may be useful for an advanced user:  The following targets are useful in development and thus may be useful for an advanced user:
   
Line 41  The following targets are useful in deve Line 42  The following targets are useful in deve
 (NB! It helps, but it _doesn't_ eliminate manual work.)  (NB! It helps, but it _doesn't_ eliminate manual work.)
   
 For example, package updating looks like this:  For example, package updating looks like this:
 <pre>  
 su root -c "make depends clean-depends clean" # to catch new dependencies  [[!template id=programlisting text="""
 rm -f distinfo && su root -c "make makesum clean" && make makepatchsum  $ su root -c "make depends clean-depends clean" # to catch new dependencies
 make clean && make stage-install # build  $ rm -f distinfo && su root -c "make makesum clean" && make makepatchsum
   $ make clean && make stage-install # build
 # modify patches  # modify patches
 make makepatchsum # and build again, or  $ make makepatchsum # and build again, or
 make makepatchsum && make clean && make patch # until all patches apply, if they failed at first  $ make makepatchsum && make clean && make patch # until all patches apply, if they failed at first
 make print-PLIST | diff -u PLIST -  $ make print-PLIST | diff -u PLIST -
 # modify PLIST  # modify PLIST
 rm $(make show-var VARNAME=WRKDIR)/.PLIST* # this deserves to be another target  $ rm $(make show-var VARNAME=WRKDIR)/.PLIST* # this deserves to be another target
 make stage-install  $ make stage-install
 # modify PLIST again or build again  # modify PLIST again or build again
 make test # just to check for regressions  $ make test # just to check for regressions
 su root -c "make package deinstall bin-install" # or  $ su root -c "make package deinstall bin-install" # or
 su root -c "make package replace"  $ su root -c "make package replace"
 </pre>  """]]

Removed from v.1.5  
changed lines
  Added in v.1.8


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb