--- wikisrc/pkgsrc/targets.mdwn 2010/12/11 23:11:06 1.7 +++ wikisrc/pkgsrc/targets.mdwn 2011/02/07 04:17:45 1.8 @@ -3,7 +3,7 @@ It was proposed that we document _all_ pkgsrc targets, but this is unreasonable and useless. 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. The following targets may be useful to invoke from keyboard: @@ -42,19 +42,20 @@ The following targets are useful in deve (NB! It helps, but it _doesn't_ eliminate manual work.) 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
+
+[[!template id=programlisting text="""
+$ 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
-make makepatchsum # and build again, or
-make makepatchsum && make clean && make patch # until all patches apply, if they failed at first
-make print-PLIST | diff -u PLIST -
+$ make makepatchsum # and build again, or
+$ make makepatchsum && make clean && make patch # until all patches apply, if they failed at first
+$ make print-PLIST | diff -u PLIST -
 # modify PLIST
-rm $(make show-var VARNAME=WRKDIR)/.PLIST* # this deserves to be another target
-make stage-install
+$ rm $(make show-var VARNAME=WRKDIR)/.PLIST* # this deserves to be another target
+$ make stage-install
 # modify PLIST again or build again
-make test # just to check for regressions
-su root -c "make package deinstall bin-install" # or
-su root -c "make package replace"
-
+$ make test # just to check for regressions +$ su root -c "make package deinstall bin-install" # or +$ su root -c "make package replace" +"""]]