File: fix-cleaning-rules.patch

package info (click to toggle)
octave-struct 1.0.18-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 380 kB
  • sloc: cpp: 442; makefile: 152; xml: 19; sh: 3
file content (21 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix cleaning of files
 + Remove Makefile and oct-alt-includes.h in the distclean rule
 + Add prerequisite clean to the distclean target
 + Add prefix "-" to the rm commands in the clean and distclean rules
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/?62765
Last-Update: 2022-07-14

--- octave-struct-1.0.18.orig/src/Makefile.in
+++ octave-struct-1.0.18/src/Makefile.in
@@ -41,7 +41,7 @@ error-helpers.o: error-helpers.cc error-
 .PHONY: clean distclean
 
 clean:
-	$(RM) *.o octave-core *.oct *~
+	-$(RM) *.o octave-core *.oct *~
 
-distclean:
-	$(RM) *.o octave-core *.oct *~ config.h config.log config.status
+distclean: clean
+	-$(RM) *.o octave-core *.oct *~ config.h config.log config.status Makefile oct-alt-includes.h