Code Monkey home page Code Monkey logo

remake's People

Contributors

silene avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tchou ykankaya zxnj

remake's Issues

New kind of dependencies

Feature wish: Currently the content of a file can only depend on the content of other files. However you can need to state that the content of a file depend on the presence or absence of a file. One example is the construction in ocaml of a .cmo that depend on the presence of a .mli.

One question is what if a dependency doesn't exists but it can be built. Do we try to build it when a rule states that it depends on the presence of the file. What if finally there is an error during the construction of the dependency?

Remakefile in parent directory

Feature wish: remake could look for a Remakefile in the parent directory instead of failing when there is no Remakefile.

This will be useful only when the users installed remake in their path. But developers of a project that use remake can take the time to do that.

Details:

  • Execute as if started from the parent directory that contains the Remakefile.
  • For the targets on the command line:
    1. try to match them pristine
    2. if there is no match, prepend them with the original directory (./file can be used by the user to disambiguate)
  • As git by default, stop looking at filesystem boundary.
  • Execute the version of remake that is specified in the Remakefile before doing anything (in that case the first remake just look for a Remakefile in the parent directory). Since remake can be distributed with a project the version can be custom.

Scope of rule-specific variable assignments

It seems that in Remake, rule-specific variable assignments do not affect dependencies. For example, the following (Re)Makefile builds a different file.txt when executed with GNU Make:

MSG = "Built with remake"

all: file.txt

file.txt: MSG = "Built with make"

%.txt: %_tmp.txt
    cp $< $@

file_tmp.txt:
    echo $(MSG) > $@

Make's behavior is useful since it enables things like easy per-executable compiler flags:

binary.out: CFLAGS += -L libblah -l blah
binary.out: foo.o bar.o baz.o

...

Would it be possible for Remake to adopt this part of GNU Make's semantics?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.