Re: [PATCH 3/7] Add a rebuild-switch to Makefile

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

 



On Fri, Sep 18, 2015 at 06:52:46PM +0200, Henrik Austad wrote:
> Signed-off-by: Henrik Austad <haustad@xxxxxxxxx>
> ---
>  Makefile | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index d4988c5..160547c 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -129,6 +129,9 @@ RPMDIRS = BUILD BUILDROOT RPMS SRPMS SPECS
>  distclean: clean
>  	rm -rf $(RPMDIRS) releases *.tar.gz rt-tests.spec tmp
>  
> +.PHONY: rebuild
> +rebuild: clean all

Does this actually work?  Make is free to execute 'clean' and 'all' at
the same time, with ... interesting side effects.

If you really want this (and I'm not sure you do):

.PHONY: rebuild
rebuild:
	$(MAKE) clean
	$(MAKE)

  Josh

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux