]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
tools/libfsimage: Fix clean and distclean make targets
authorDaniel Kiper <daniel.kiper@oracle.com>
Fri, 10 May 2013 15:33:54 +0000 (17:33 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 13 May 2013 09:57:17 +0000 (10:57 +0100)
If there is a single colon for a given target and the target
is redefined in another place (e.g. in included file) then
make executes only new target and displays following warning:

Makefile:35: warning: overriding commands for target `clean'
tools/libfsimage/common/../../../tools/libfsimage/Rules.mk:25:
warning: ignoring old commands for target `clean'

To cope with that issue define all required targets as double-colon
rules. Additionally, remove some redundant stuff.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libfsimage/Rules.mk
tools/libfsimage/common/Makefile

index e4b2a9158ef6d5d70767f349b3889631a69b47d3..8a236552f7df30efe11f5d8903072e19f60a7bd5 100644 (file)
@@ -21,7 +21,7 @@ fs-install: fs-all
 $(FSLIB): $(PIC_OBJS)
        $(CC) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $^ -lfsimage $(FS_LIBDEPS) $(APPEND_LDFLAGS)
 
-clean distclean:
+clean distclean::
        rm -f $(PIC_OBJS) $(FSLIB) $(DEPS)
 
 -include $(DEPS)
index f0ee3ab296b7bc66bb5aaa3e7e3f197f0dd7992e..cbd60b41a7803134aa8b244d10989cd0a0ce7901 100644 (file)
@@ -31,8 +31,8 @@ install: all
        $(INSTALL_DATA) fsimage_plugin.h $(DESTDIR)$(INCLUDEDIR)
        $(INSTALL_DATA) fsimage_grub.h $(DESTDIR)$(INCLUDEDIR)
 
-clean distclean:
-       rm -f $(PIC_OBJS) $(LIB) $(DEPS)
+clean distclean::
+       rm -f $(LIB)
 
 libfsimage.so: libfsimage.so.$(MAJOR)
        ln -sf $< $@