From: Stefan Sperling Subject: Re: Provide lib/Makefile to enable tags file generation To: gameoftrees@openbsd.org Date: Thu, 7 Oct 2021 17:26:22 +0200 On Thu, Oct 07, 2021 at 03:17:42PM +0000, Klemens Nanni wrote: > On Thu, Oct 07, 2021 at 02:49:50PM +0000, Klemens Nanni wrote: > > blob - /dev/null > > blob + c29824ec93904a78d46471cb7d666413bf09fdff (mode 644) > > --- /dev/null > > +++ lib/Makefile > > @@ -0,0 +1,5 @@ > > +PROG = # empty > > So this changes things: the default target now fails instead of silently > doing nothing. > > > +# make the "libs" target work > > +SRCS = *.c > > + > > +.include > > And there's more fitting which is used identically, > although the default target always fails with LIB unset or set to the > empty string... > > I'd do this for "correctness"; you're not supposed to run make for > anything but tags anyway, so better fail. Sure! Looks good to me. I don't use tags so I cannot test it.