Changeset 2370

Show
Ignore:
Timestamp:
04/17/07 17:12:25 (2 years ago)
Author:
n0-1
Message:

Ok, this is the drawback of integrating new functionalities:
in the end it is always a lot more work than one expected. :)

So as requested, here comes the big documentation. To prevent
screen flooding, I split everything up into three parts:
* general make targets
* package specific targets (though generic in some way)
* package maintainers target(s)

The only maintainer target is 'update-patches', but as the most
complicated part of using it is to know how, this should fit
into a separate target. (And will hopefully grow in the future.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/Makefile

    r2369 r2370  
    3131        @echo '  allnoconfig  - New config where all options are answered with no' 
    3232        @echo '' 
     33        @echo 'Help targets:' 
     34        @echo '  help         - Print this help text' 
     35        @echo '  pkg-help     - Print help about selectively compiling single packages' 
     36        @echo '  dev-help     - Print help for developers / package maintainers' 
     37        @echo '' 
    3338        @echo 'Other generic targets:' 
    3439        @echo '  all          - Build everything as specified in .config' 
    3540        @echo '                 (default if .config exists)' 
    3641        @echo '  v            - Same as "all" but with logging to make.log enabled' 
    37         @echo '' 
     42 
     43pkg-help: 
    3844        @echo 'Package specific targets (use with "package=<pkg-name>" parameter):' 
    3945        @echo '  fetch        - Download the necessary distfile' 
     
    4349        @echo '  fake         - Same as "build", but also install the binaries' 
    4450        @echo '  package      - Same as "fake", but also create the ipkg package' 
     51        @echo '' 
     52        @echo 'Short package rebuilding guide:' 
     53        @echo '  run "make package=<pkgname> clean" to remove all generated binaries' 
     54        @echo '  run "make package=<pkgname> package" to build everything and create the ipkg' 
     55        @echo '' 
     56        @echo 'BEWARE: as for now, this does not resolve package dependencies!' 
     57 
     58dev-help: 
     59        @echo 'Fast way of updating package patches:' 
     60        @echo '  run "make package=<pkgname> clean" to start with a good base' 
     61        @echo '  run "make package=<pkgname> patch" to fetch, unpack and patch the source' 
     62        @echo '  edit the package sources at build_dir/<pkgname>/<pkgname>-<version>' 
     63        @echo '  run "make package=<pkgname> update-patches to update the existing patches (if any)' 
     64        @echo '' 
     65        @echo 'Each changed patches will be opened with your $$EDITOR,' 
     66        @echo 'so you can add a description and verify the changes.' 
     67 
    4568 
    4669clean: .prereq_done