• 7heo@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      6
      ·
      edit-2
      8 months ago

      Honestly, if the makefile is well written, I will take that any day. Good makefiles are 😙👌.

      They are extremely rare, tho…

      I guess the solution would be a declarative language that compiles to makefiles. So that people don’t have to know the nitty gritty of writing good makefiles, and can just maintain a file of their dependencies and settings…

      • Bogasse@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        8 months ago

        I’ve always conjectured that good Makefiles existed but never seen one (or only for tiny projects). The core semantic of Makefiles is clear and straight to the point, I think the issue is in all the magic that was added to that to spare a few lines.

        • 7heo@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          7 months ago

          IMHO the issue is two folds:

          1. The makefile were never supposed to do more than determine which build tools to call (and how) for a given target. Meaning that in very many cases, makefile are abused to do way too much. I’d argue that you should try to keep your make targets only one line long. Anything bigger and you’re likely doing it wrong (and ought to move it in a shell script, that gets called from the makefile).
          2. It is really challenging to write portable makefiles. There’s BSD make and GNU make, and then there are different tools on different systems. Different dependencies. Different libs. Etc. Not easy.
      • flying_sheep@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        8 months ago

        Why compile to a Makefile? You’d end up with automake gunk all over again. Just use cmake or so, where the declarative language replaces the Makefile entirely

        • Corngood@lemmy.ml
          link
          fedilink
          English
          arrow-up
          4
          ·
          8 months ago

          cmake compiles to makefiles as well (it just also supports some other backends). I’m not sure why that matters though. In both cases the makefile is generated.

  • dhork@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    8 months ago

    Hey Torquemada, whaddya say?

    I just got back from the auto-de-fe

    Auto-de-fe? What’s an auto-de-fe?

    It’s what you oughtn’t to do but you do anyway…