File: make-clean.patch

package info (click to toggle)
xdp-tools 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,360 kB
  • sloc: ansic: 24,678; sh: 2,627; makefile: 422; python: 337; lisp: 53
file content (24 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Luca Boccassi <bluca@debian.org>
Forwarded: https://github.com/xdp-project/xdp-tools/pull/555
Description: remove all generated files on make clean
--- a/lib/libxdp/tests/Makefile
+++ b/lib/libxdp/tests/Makefile
@@ -54,7 +54,7 @@
 
 .PHONY: clean
 clean::
-	$(Q)rm -f $(USER_TARGETS) $(USER_OBJ)
+	$(Q)rm -f $(USER_TARGETS) $(USER_OBJ) $(STATIC_LINK_TARGETS) $(BPF_OBJS)
 
 .PHONY: install
 install: all
--- a/Makefile
+++ b/Makefile
@@ -72,6 +72,7 @@
 clean: check_submodule
 	@for i in $(SUBDIRS); \
 	do $(MAKE) -C $$i clean; done
+	rm -f config.mk
 
 install: all
 	@for i in $(SUBDIRS); \