More power to GPRbuild

The same could be said of Unix, and C, and a myriad of other bad-yet-widely-adopted decisions.
Is make exempt from criticism because it is widely used?

You were the one who brought the subject up, saying, “Don’t understand why people hate Make.” — is explaining people’s experiences and criticisms, that is the dislike/hate, offensive to you? If so, why?

I’m not saying they were stupid, but it would be wrong to say that they never did anything stupid.
Null-terminated strings are an excellent example of stupid — being able to assess, honestly, past mistakes is absolutely a needed skill; as is the ability to critique “consensus”. Just because “that’s the way we’ve always done it” or “everyone else is doing it” are generally not sufficiently convincing arguments to me.

What?
I don’t see how this ties into the rest of your post; unless you’re going out of your way to assume an assertion that GNU and/or POSIX are not only unmitigated good, but beyond critique. — Which I don’t think you’re doing. So, why put this in your post?

You can always add whatever you wanted by scripting the driver. For example:

project Hello is
   for Main use ("hello.adb");
   package Compiler is
      for Driver ("Ada") use "./my_gcc.sh";
   end Compiler;
end Hello;

and this is the script:

#!/bin/bash
PATH="$PATH:/usr/libexec/gcc/x86_64-linux-gnu/13"
gcc $*
name=${@: -1}
name=${name%%.*}
objdump -t ${name}.o > ${name}.txt
1 Like

Where did you get that? There is a gazillion of build tools. make was always quite a niche.

There was no make in 50’s. Nor in 60’s. If you are interested, people used batch processing, e.g. JCL. Nor assembler was very popular, except for DEC machines. MACRO-11 was exceptionally good. But majority used FORTRAN, COBOL, PL/1, Algol 60. Make came first when the Dark Age of computing began, with UNIX destroying everything.

I see no problem bootstrapping GCC using gprbuild.

I asked “why people hate Make” because I read criticisms about a great tool that, out of discussion, was and is widely used. It is my precise duty to defend a tool that is such an useful thing.

Too many of your observations to respond, I have no time so far, sorry. Maybe later.

Thanks for the infos. But I think you misunderstood my message between the lines. Besides that, you guys are insisting in blame something that was/is useful, in those days.

I will avoid to ask you how (see next reply).

So you have anyway to call an external stupid UNIX shell in order to have your problem solved.

BTW, Make can do this thing without write a separate file. Just write it in a recipe.

I find it simpler, don’t you ?

This topic was meant to be a submission of a project idea, it has devolved into an argument about make and Unix philosophy. This thread is now locked.

4 Likes