mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
b978a348eb
commit
a03b3552d4
9 files changed
+19
-34
No files matched your search
@@ -82,6 +82,7 @@ uninstall:
|
||||
clean:
|
||||
rm -rf xen xen-xsm acpi
|
||||
$(MAKE) -C xen-foreign clean
|
||||
rm -f _*.h
|
||||
|
||||
.PHONY: dist
|
||||
dist: install
|
||||
|
||||
@@ -13,6 +13,7 @@ clean:
|
||||
rm -f $(headers)
|
||||
rm -f checker checker.c
|
||||
rm -f *.pyc *.o *~
|
||||
rm -rf __pycache__
|
||||
|
||||
distclean: clean
|
||||
|
||||
|
||||
@@ -54,8 +54,5 @@ NO_HEADERS_CHK := y
|
||||
|
||||
include $(XEN_ROOT)/tools/libs/libs.mk
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
clean::
|
||||
rm -f libxenctrl.map
|
||||
@@ -104,6 +104,5 @@ include $(XEN_ROOT)/tools/libs/libs.mk
|
||||
|
||||
libxenguest.so.$(MAJOR).$(MINOR): LDLIBS += $(ZLIB_LIBS) -lz
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
clean::
|
||||
rm -f libxenguest.map
|
||||
+2
-2
@@ -124,8 +124,8 @@ TAGS:
|
||||
etags -t *.c *.h
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS)
|
||||
clean::
|
||||
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 headers.chk headers.lst
|
||||
rm -f $(PKG_CONFIG)
|
||||
|
||||
@@ -246,15 +246,12 @@ install:: $(LIBHEADERS) libxl-save-helper
|
||||
uninstall::
|
||||
rm -f $(DESTDIR)$(LIBEXEC_BIN)/libxl-save-helper
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
$(RM) -f _*.h *.o $(CLIENTS)
|
||||
$(RM) -f _*.c *.pyc _paths.*.tmp _*.api-for-check
|
||||
$(RM) -f testidl.c.new testidl.c *.api-ok
|
||||
$(RM) -f $(TEST_PROGS)
|
||||
$(RM) -rf __pycache__
|
||||
$(RM) -f libxenlight.map
|
||||
$(RM) -f $(AUTOSRCS) $(AUTOINCS)
|
||||
clean::
|
||||
$(RM) _*.h *.o $(CLIENTS)
|
||||
$(RM) _*.c *.pyc _*.api-for-check
|
||||
$(RM) testidl.c.new testidl.c *.api-ok
|
||||
$(RM) $(TEST_PROGS) libxenlight_test.so libxl_test_*.opic
|
||||
$(RM) -r __pycache__
|
||||
$(RM) libxenlight.map
|
||||
$(RM) $(AUTOSRCS) $(AUTOINCS)
|
||||
$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean
|
||||
@@ -115,9 +115,5 @@ install:: install-perl-bindings
|
||||
uninstall:: uninstall-perl-bindings
|
||||
endif
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
rm -f $(BINDINGS) $(BINDINGSRC) $(DEPS_RM)
|
||||
rm -f libxenstat.map
|
||||
clean::
|
||||
$(RM) libxenstat.map $(BINDINGS) $(BINDINGSRC)
|
||||
@@ -49,8 +49,5 @@ $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS)
|
||||
@rm -f $*.[ch]
|
||||
$(FLEX) --header-file=$*.h --outfile=$*.c $<
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
$(RM) -f libxlutil.map
|
||||
clean::
|
||||
$(RM) libxenutil.map
|
||||
@@ -12,8 +12,5 @@ NO_HEADERS_CHK := y
|
||||
|
||||
include $(XEN_ROOT)/tools/libs/libs.mk
|
||||
|
||||
clean: cleanlocal
|
||||
|
||||
.PHONY: cleanlocal
|
||||
cleanlocal:
|
||||
clean::
|
||||
rm -f libxenvchan.map
|
||||