quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] Permanent target in Makefile


From: Andreas Gruenbacher
Subject: Re: [Quilt-dev] Permanent target in Makefile
Date: Mon, 19 Sep 2005 21:04:05 +0200
User-agent: KMail/1.7.1

On Monday 19 September 2005 20:33, Jean Delvare wrote:
> Hi all,
>
> After the recent changes to the build system, we now have a rule which
> is run whether the build is already complete or not:
>
> compat-programs : $(COMPAT_PROGRAMS:%=compat/%)
>       chmod +x $+
>
> This is causing noise on each build, and causing doc/quilt.1 to be
> regenerated if any compatibility program is used, wasting time. The
> rule triggers on "make install" too, causing targets to be potentially
> built by root, which we probably don't want to happen. How can we fix
> this? Can't we simply run that chmod at the moment we build each binary?

We can do this instead. It's not pretty, but hey...

+       @for program in $+; do \
+           test -x $$program || chmod +x $$program; \
+       done

-- Andreas.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]