Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Laslo Hunhold
On Sat, 1 Jan 2022 23:30:39 +0100 Ralph Eastwood wrote: Dear Ralph, > Those are both useful suggestions! Thank you! you're very welcome! :) With best regards Laslo

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Ralph Eastwood
Hi Laslo and Mattias, On Sat, 1 Jan 2022 at 19:05, Laslo Hunhold wrote: > If you think about it, a better approach in this case would be to pack > these things into a static library (which is basically a collection of > object files). So you would have a target On Sat, 1 Jan 2022 at 20:10, Matti

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Mattias Andrée
.POSIX: CC = c99 # Required as POSIX doesn't mandate that it is defined by default OBJ =\ alpha.o\ beta.o\ gamma.o LINUX_AMD64_OBJ = $(OBJ:.o=.linux-amd64-o) OPENBSD_AMD64_OBJ = $(OBJ:.o=.openbsd-amd64-o) all: myproj-linux-amd64 myproj-openbsd-amd64 myproj-linux-amd64:

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Laslo Hunhold
On Sat, 1 Jan 2022 17:03:41 +0100 Ralph Eastwood wrote: Dear Ralph, > Thanks for pointing out that technique, I've utilised it in the past > and it's a shame that it's not more well-known... I've seen many a > GNUism in its place... yeah, it makes a lot of sense and is nice and simple. > The i

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Ralph Eastwood
Hi Laslo, > and then in config.mk have a variable > >TARGET = arm > > and then in the Makefile have a line > >include target/$TARGET.mk Thanks for pointing out that technique, I've utilised it in the past and it's a shame that it's not more well-known... I've seen many a GNUism in its pla

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Laslo Hunhold
On Sat, 1 Jan 2022 14:08:24 +0100 Ralph Eastwood wrote: Dear Ralph, > So... makellint? :D > I like it; it seems 'makel' is unused as a project name. and even if, it's not like names are reserved. When some 13-year-old kid dumps some Rust-crap with a name on GitHub I wouldn't see it as reserved.

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Ralph Eastwood
Hi Mattias, Happy New Year! > But I also like makel, but I will give it some more though before I rename it a second time. So... makellint? :D I like it; it seems 'makel' is unused as a project name. Are there any suggestions for handling out-of-source builds using POSIX makefiles? I recently

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Laslo Hunhold
On Sat, 1 Jan 2022 13:22:48 +0100 Mattias Andrée wrote: Dear Mattias, > libzahl is my only project with a German name, and it's was called > libzahl because the bold Z used represent the integers stands for > Zahl, but I do have projects with names in different languages (I > also have libskrift

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Mattias Andrée
On Sat, 1 Jan 2022 13:01:05 +0100 Laslo Hunhold wrote: > On Sat, 1 Jan 2022 10:33:22 +0100 > Mattias Andrée wrote: > > Dear Mattias, > > first off, happy new year to all of you! > > > Thanks for pointing that it, I didn't find it in my search. > > I renamed it to mklint. > > This is also c

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Lincoln Auster
> I'd definitely be interested in such a tool. Weather it be in form of > a make implementation or linter doesn't matter a whole lot to me as > long as the end goal of having a tool to help write portable makefile > is achieved. This is my take, too --- I'd get plenty of use out of either version,

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Laslo Hunhold
On Sat, 1 Jan 2022 10:33:22 +0100 Mattias Andrée wrote: Dear Mattias, first off, happy new year to all of you! > Thanks for pointing that it, I didn't find it in my search. > I renamed it to mklint. This is also confusing as mk(1) by plan9 exists, but you explicitly target POSIX make(1). make

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread Mattias Andrée
Thanks for pointing that it, I didn't find it in my search. I renamed it to mklint. Regards, Mattias Andrée On Sat, 1 Jan 2022 14:43:15 +0600 NRK wrote: > On Fri, Dec 31, 2021 at 11:29:11PM +0100, Mattias Andrée wrote: > > I just started implementing a linter[0]. Even though I just > > starte

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-01 Thread NRK
On Fri, Dec 31, 2021 at 11:29:11PM +0100, Mattias Andrée wrote: > I just started implementing a linter[0]. Even though I just > started it today, I think that's enough for this year. > > Happy New Year! > Mattias Andrée > > [0] https://github.com/maandree/makelint/ Thank you very much, I'll keep