Annotation of wikisrc/pkgsrc/targets.mdwn, revision 1.1

1.1     ! asau        1: # pkgsrc targets
        !             2: 
        !             3: It was proposed that we document _all_ pkgsrc targets,
        !             4: but this is unreasonable and useless.
        !             5: Most targets are ancilliary ones,
        !             6: they exist because that's how make(1) works,
        !             7: only few of them are useful for regular work.
        !             8: 
        !             9: The following targets may be useful to invoke from keyboard:
        !            10: * "extract" to look at unmodified source
        !            11: * "patch" to look at initial source
        !            12: * "configure" to stop after configure stage
        !            13: * "all" or "build" to stop after build stage
        !            14: * "stage-install" to install under stage directory
        !            15: * "test" to run package's self-tests, if any exist and supported
        !            16: * "package" to create binary package before installing it
        !            17: * "replace" to change (upgrade, downgrade, or just replace) installed package in-place
        !            18: * "deinstall" to deinstall previous package
        !            19: * "package-install" to install package and build binary package
        !            20: * "install" to install package
        !            21: 
        !            22: For example, package updating looks like this:
        !            23: <pre>
        !            24: rm -f distinfo && su root -c "make makesum clean" && make makepatchsum
        !            25: make clean && make stage-install # build
        !            26: # modify patches
        !            27: make makepatchsum # and build again, or
        !            28: make makepatchsum && make clean && make patch # until all patches apply, if they failed at first
        !            29: make print-PLIST | diff -u PLIST -
        !            30: # modify PLIST
        !            31: rm $(make show-var VARNAME=WRKDIR)/.PLIST* # this deserves to be another target
        !            32: make stage-install
        !            33: # modify PLIST again or build again
        !            34: make test # just to check for regressions
        !            35: su root -c "make package deinstall bin-install" # or
        !            36: su root -c "make package replace"
        !            37: </pre>

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