makepp_repositories

makepp_repositories is a tutorial about how to use repositories for variant builds.
Download

makepp_repositories Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daniel Pfeiffer
  • Publisher web site:
  • http://search.cpan.org/~pfeiffer/makepp-1.50-cvs-070728/pod/makepp_builtins.pod

makepp_repositories Tags


makepp_repositories Description

makepp_repositories is a tutorial about how to use repositories for variant builds. makepp_repositories is a tutorial about how to use repositories for variant builds, for maintaining a central set of sources, and other things.A repository is a directory or directory hierarchy outside of the default directory that contains files which the makefile needs in the current directory tree. Makepp can automatically link files from the repository into the current directory tree if they are needed. Repositories provide similar functionality to the VPATH variable in some versions of make, but (unlike VPATH) you do not have to do anything special to your makefile to get them to work.Repositories are specified with the -R or --repository command line option (see "-R" in makepp_command) or with the repository statement (see "repository" in makepp_statements) in the makefile.Repositories are useful in several different situations:When you want to place your object and executable files in a separate directory, but the makefile is written to place them in the same directory as the sources.When you want to build the same program two different ways (e.g., with two different sets of compilation options, or for two different architectures).When you don't have write access to all or part of the source tree.When several developers are working on the same project, and there is a common source repository containing all the sources for the project. Each developer can modify only the files he needs to change in his local directory without affecting the other developers, and makepp will automatically fetch the unmodified files from the source repository.Makepp's implementation of repositories does not require rewriting of the build commands at all, unlike (for example) repositories in cons. Makepp puts a symbolic link into the directory where the command is expecting it. As long as the command does not refer to absolute directories, the exact same shell command will work with files from a repository. This means that it works not only for compilation commands, but any kind of command you can think to put in your makefile.Makepp has another kind of mechanism called a build cache which solves some of the same sorts of problems as repositories in a different way. Depending on your problem, a build cache may be more useful than a repository. See makepp_build_cache for information about build caches and a comparison of build caches and repositories. Requirements: · Perl


makepp_repositories Related Software