File: 0005-Fix-upstream-cleaning-rules.patch

package info (click to toggle)
ocamlnet 4.1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 52,232 kB
  • sloc: ml: 151,647; ansic: 11,049; sh: 1,975; makefile: 1,310
file content (63 lines) | stat: -rw-r--r-- 2,168 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
From: Stephane Glondu <steph@glondu.net>
Date: Tue, 7 May 2013 13:54:27 +0200
Subject: Fix upstream cleaning rules

Signed-off-by: Stephane Glondu <steph@glondu.net>
---
 src/netcgi2-apache/Makefile.pre | 5 ++---
 src/netsys/Makefile             | 5 +++--
 src/netsys/Makefile.pre         | 4 +++-
 src/rpc-auth-local/Makefile.pre | 3 +++
 4 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/netcgi2-apache/Makefile.pre b/src/netcgi2-apache/Makefile.pre
index e5eec77..d402e1c 100644
--- a/src/netcgi2-apache/Makefile.pre
+++ b/src/netcgi2-apache/Makefile.pre
@@ -36,6 +36,5 @@ include $(TOP_DIR)/Makefile.rules
 CLEAN_LIST += $(wildcard *.so) $(wildcard *.lo) $(wildcard *.slo) \
   $(wildcard *.la) config.h netcgi_apache_mod.ml 500netcgi_apache.info
 
-clean::
-	test -d .libs && $(RM) -rf .libs/
-
+distclean::
+	$(RM) -rf .libs/ *.cds
diff --git a/src/netsys/Makefile b/src/netsys/Makefile
index d1113b7..11b4209 100644
--- a/src/netsys/Makefile
+++ b/src/netsys/Makefile
@@ -125,7 +125,8 @@ netsys_oothr-posix: netsys_oothr_mt.cmx
 
 
 clean::
-	rm -f configtests/*.o configtests/*.err
-	rm -f configtests/posix_shm
+	rm -f configtests/*.o configtests/*.err configtests/*.tmp configtests/*.cm*
+	find configtests -type f -executable -delete
+	rm -rf tmp
 
 include depend
diff --git a/src/netsys/Makefile.pre b/src/netsys/Makefile.pre
index 8d4084b..c753f6f 100644
--- a/src/netsys/Makefile.pre
+++ b/src/netsys/Makefile.pre
@@ -21,4 +21,6 @@ include $(TOP_DIR)/Makefile.rules
 distclean::
 	rm -f Makefile.conf config.h
 	rm -f configtests/*.cmi configtests/*.cmo configtests/*.o
-	rm -f configtests/*.err configtests/posix_shm
+	rm -f configtests/*.err configtests/*.tmp configtests/*.cm*
+	find configtests -type f -executable -delete
+	rm -rf tmp
diff --git a/src/rpc-auth-local/Makefile.pre b/src/rpc-auth-local/Makefile.pre
index c8cbbf2..ba1fc1d 100644
--- a/src/rpc-auth-local/Makefile.pre
+++ b/src/rpc-auth-local/Makefile.pre
@@ -9,3 +9,6 @@ GENERATE = META
 PP_OPTIONS = -pp "$(CPPO) $(PP_BYTES) $(PP_DEPRECATED)"
 
 include $(TOP_DIR)/Makefile.rules
+
+distclean::
+	rm -f config.h configtests/*.err configtests/*.o configtests/*.cm*