diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2007-12-13 16:18:53 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2007-12-19 14:50:07 +0900 |
commit | 4b3340f33467aa1bebfa05791dc53bbaf1028381 (patch) | |
tree | 124e1bec919e133fe6558ff023afc457ac906517 /Makefile.in | |
parent | 3f871456d4d350b5abdb2b7fdcfedec5743d6db2 (diff) | |
download | kexec-tools-4b3340f33467aa1bebfa05791dc53bbaf1028381.tar.gz |
make clean cleanup
Use a $(clean) variable to store all items that need to be removed on
'make clean' (eg, .o files).
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Simon Horman <horms@verge.net.au>
Conflicts:
Makefile.in
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Makefile.in b/Makefile.in index 7df70320..cf1befa8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -120,6 +120,9 @@ all: $(TARGETS) @$(MKDIR) -p $(@D) $(COMPILE.S) -MD -o $@ $< +# collect objects to be removed in 'make clean' +clean = + # utility function for converting a list of files (with extension) to # file.o (or file.d) format. objify = $(addsuffix .o, $(basename $(1))) @@ -215,23 +218,14 @@ echo:: @echo LD=$(LD) clean: - @$(FIND) $(OBJDIR) -name '*.o' -type f | $(XARGS) $(RM) rm -f - @$(RM) -rf rpm - @$(RM) -f config.log config.status config.cache - @$(RM) -f $(TARBALL) + $(RM) -f $(clean) + $(RM) -rf rpm build + $(RM) -f $(TARBALL) $(TARBALL.gz) distclean: dist-clean dist-clean: clean - @$(RM) -rf $(OBJDIR) - @$(FIND) . -type f -name '*~' -o -name '*.orig' | $(XARGS) $(RM) -f - @$(RM) -f Makefile.conf - -maintainerclean: maintainer-clean - -maintainer-clean: dist-clean - @$(RM) -f $(GENERATED_SRCS) - + $(RM) -f config.log config.status config.cache Makefile include/config.h install: $(TARGETS) for file in $(TARGETS) ; do \ |