Code Monkey home page Code Monkey logo

Comments (9)

essen avatar essen commented on May 9, 2024
  • Why? If there's a warning, then something is wrong.
  • Send a patch if you know how to do it better.
  • You can override the default target, as far as I can tell that's all that's needed for 99% of the cases.

from erlang.mk.

dvv avatar dvv commented on May 9, 2024
  1. Because it affects building dependencies too. You can't respond for others. If dependency code has warnings, your target won't build.
  2. Yes, looking at that.
  3. Agree.

from erlang.mk.

essen avatar essen commented on May 9, 2024

If the dependency has warnings, you should first be concerned about using it, and then consider patching it if you really want to use it. Otherwise if you're really really sure you want to use it as-is you can always change the erlc flags in your makefile. Don't think we need to do anything there.

from erlang.mk.

dvv avatar dvv commented on May 9, 2024
  1. $(PROJECT) should be set (with ?=, to allow explicit overriding) to basename of the current dir make observes, to ease implicit injection of erlang.mk for deps that lack it.

from erlang.mk.

essen avatar essen commented on May 9, 2024
01:40:54         nox | essen: if you do a rule such as test_%: test/%_SUITE.erl, you can make a per-suite test target                                                        
12:40:10         nox | essen: if you want cool Make ideas                                                                                                                    
12:40:20         nox | take a look at ghc's targets                                                                                                                          
12:40:38         nox | they have a non-recursive make infrastructure with a lot of fancy targets like what I suggested                                                       
(DONE) 12:41:18         nox | also essen, in the ct_run call you do "-pa ebin $(DEPS_DIR)/*/ebin"                                                                                   
(DONE) 12:41:50         nox | if you give an absolute directory for ebin, ct_run will not say Converting "ebin" to "blablabla/ebin" and re-inserting with add_patha/1 on every run  

from erlang.mk.

essen avatar essen commented on May 9, 2024

Someone also suggested a way to override targets like $(erlang.mk)compile: ...

from erlang.mk.

fenollp avatar fenollp commented on May 9, 2024

Hey,
• Considering L103, nox has a good lead IMHO
• Another thought: this makes for a more modular base Makefile IMHO

PROJECT = my_app

all: erlang.mk

erlang.mk:
         git clone https://github.com/extend/erlang.mk.git erlang.mk.git
         mv erlang.mk.git/erlang.mk $@
         rm -rf erlang.mk.git

include erlang.mk

• Last thought: PROJECT (the variable holding the project's name) should maybe be APP instead. Every Erlang/OTP project is either an application or a application library, hence APP.

from erlang.mk.

essen avatar essen commented on May 9, 2024

Set vsn attribute of all modules: https://twitter.com/nokusu/status/398849986701828096

from erlang.mk.

essen avatar essen commented on May 9, 2024

I believe all of this is either done or covered by other issues. If I missed something, please open an individual ticket per issue. Thanks!

from erlang.mk.

Related Issues (20)

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.