libs,tools/include: Clean "clean" targets

There is no need for an extra "cleanlocal" target, we can use
double-colon rules instead.

Generated headers are now in tools/include/, so remove those file
there.

Remove -f flag as it's already in $(RM).

libs.mk:
  - don't try to remove "*.rpm" anymore.

libs/light:
  - "_paths.*.tmp" isn't created anymore.
  - clean "libxenlight_test.so" and "libxl_test_*.opic".

libs/stat:
  - don't remove $(DEPS_RM) from here as it is already done in
    "libs.mk".

libs/util:
  - fix clean of version-script file.

include/xen-foreign:
  - remove __pycache__

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
Anthony PERARD authored and Julien Grall committed 2022-06-16 16:58:50 +01:00
1 parent b978a348eb
commit a03b3552d4
9 files changed
+19 -34

No files matched your search

+1
View File
@@ -82,6 +82,7 @@ uninstall:
clean: clean:
rm -rf xen xen-xsm acpi rm -rf xen xen-xsm acpi
$(MAKE) -C xen-foreign clean $(MAKE) -C xen-foreign clean
rm -f _*.h
.PHONY: dist .PHONY: dist
dist: install dist: install
+1
View File
@@ -13,6 +13,7 @@ clean:
rm -f $(headers) rm -f $(headers)
rm -f checker checker.c rm -f checker checker.c
rm -f *.pyc *.o *~ rm -f *.pyc *.o *~
rm -rf __pycache__
distclean: clean distclean: clean
+1 -4
View File
@@ -54,8 +54,5 @@ NO_HEADERS_CHK := y
include $(XEN_ROOT)/tools/libs/libs.mk include $(XEN_ROOT)/tools/libs/libs.mk
clean: cleanlocal clean::
.PHONY: cleanlocal
cleanlocal:
rm -f libxenctrl.map rm -f libxenctrl.map
+1 -2
View File
@@ -104,6 +104,5 @@ include $(XEN_ROOT)/tools/libs/libs.mk
libxenguest.so.$(MAJOR).$(MINOR): LDLIBS += $(ZLIB_LIBS) -lz libxenguest.so.$(MAJOR).$(MINOR): LDLIBS += $(ZLIB_LIBS) -lz
.PHONY: cleanlocal clean::
cleanlocal:
rm -f libxenguest.map rm -f libxenguest.map
+2 -2
View File
@@ -124,8 +124,8 @@ TAGS:
etags -t *.c *.h etags -t *.c *.h
.PHONY: clean .PHONY: clean
clean: clean::
rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS) rm -rf $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS)
rm -f lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) lib$(LIB_FILE_NAME).so.$(MAJOR) rm -f lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) lib$(LIB_FILE_NAME).so.$(MAJOR)
rm -f headers.chk headers.lst rm -f headers.chk headers.lst
rm -f $(PKG_CONFIG) rm -f $(PKG_CONFIG)
+8 -11
View File
@@ -246,15 +246,12 @@ install:: $(LIBHEADERS) libxl-save-helper
uninstall:: uninstall::
rm -f $(DESTDIR)$(LIBEXEC_BIN)/libxl-save-helper rm -f $(DESTDIR)$(LIBEXEC_BIN)/libxl-save-helper
clean: cleanlocal clean::
$(RM) _*.h *.o $(CLIENTS)
.PHONY: cleanlocal $(RM) _*.c *.pyc _*.api-for-check
cleanlocal: $(RM) testidl.c.new testidl.c *.api-ok
$(RM) -f _*.h *.o $(CLIENTS) $(RM) $(TEST_PROGS) libxenlight_test.so libxl_test_*.opic
$(RM) -f _*.c *.pyc _paths.*.tmp _*.api-for-check $(RM) -r __pycache__
$(RM) -f testidl.c.new testidl.c *.api-ok $(RM) libxenlight.map
$(RM) -f $(TEST_PROGS) $(RM) $(AUTOSRCS) $(AUTOINCS)
$(RM) -rf __pycache__
$(RM) -f libxenlight.map
$(RM) -f $(AUTOSRCS) $(AUTOINCS)
$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean $(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean
+2 -6
View File
@@ -115,9 +115,5 @@ install:: install-perl-bindings
uninstall:: uninstall-perl-bindings uninstall:: uninstall-perl-bindings
endif endif
clean: cleanlocal clean::
$(RM) libxenstat.map $(BINDINGS) $(BINDINGSRC)
.PHONY: cleanlocal
cleanlocal:
rm -f $(BINDINGS) $(BINDINGSRC) $(DEPS_RM)
rm -f libxenstat.map
+2 -5
View File
@@ -49,8 +49,5 @@ $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS)
@rm -f $*.[ch] @rm -f $*.[ch]
$(FLEX) --header-file=$*.h --outfile=$*.c $< $(FLEX) --header-file=$*.h --outfile=$*.c $<
clean: cleanlocal clean::
$(RM) libxenutil.map
.PHONY: cleanlocal
cleanlocal:
$(RM) -f libxlutil.map
+1 -4
View File
@@ -12,8 +12,5 @@ NO_HEADERS_CHK := y
include $(XEN_ROOT)/tools/libs/libs.mk include $(XEN_ROOT)/tools/libs/libs.mk
clean: cleanlocal clean::
.PHONY: cleanlocal
cleanlocal:
rm -f libxenvchan.map rm -f libxenvchan.map
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.