File: 30_fix-dh_auto_clean.diff

package info (click to toggle)
sdop 0.90-2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 12,020 kB
  • sloc: ansic: 16,199; xml: 8,525; sh: 265; perl: 199; makefile: 130
file content (26 lines) | stat: -rw-r--r-- 822 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
Description: Avoid dh_auto_clean breakage
 dh_auto_clean uses "make -n" to check whether the distclean target is
 available.
 Having $(MAKE) in a recipe make -n a noop, i.e. the recipe is executed
 when testing for the target existence and the actual effective later call
 would fail.
Author: Andreas Metzler <ametzler@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/1034080
Forwarded: no
Last-Update: 2023-04-08

--- sdop-1.00.orig/Makefile.in
+++ sdop-1.00/Makefile.in
@@ -50,8 +50,9 @@ build:; @cd src; $(MAKE) all \
 
 clean:; cd src; $(MAKE) clean
 
-distclean:;     rm Makefile config.cache config.log config.status; \
-                cd src; $(MAKE) clean
+distclean:
+	rm -f Makefile config.cache config.log config.status
+	cd src && $(MAKE) clean
 
 test:           build
 		cd testing; ./runtest