File: add-distclean-target.patch

package info (click to toggle)
octave-interval 3.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,580 kB
  • sloc: ansic: 31,664; sh: 3,708; cpp: 2,958; objc: 1,662; makefile: 243; xml: 58; sed: 8
file content (22 lines) | stat: -rw-r--r-- 695 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
22
Description: Add distclean target to src/Makefile
 Also, add a '-" prefix to the rm command in the clean rule, such that
 the processing of "make distclean" is not prematurely aborted if
 there is no *.oct or *.o files.
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/?62758
Last-Update: 2022-07-11

--- octave-interval-3.2.1.orig/src/Makefile
+++ octave-interval-3.2.1/src/Makefile
@@ -79,6 +79,9 @@ __setround__.oct: __setround__.cc
 
 clean:
 	test ! -e $(BUNDLED_CRLIBM_DIR)/Makefile || $(MAKE) -C $(BUNDLED_CRLIBM_DIR) $@
-	$(RM) *.oct *.o
+	-$(RM) *.oct *.o
 
-.PHONY: all clean
+distclean: clean
+	-$(RM) config.log
+
+.PHONY: all clean distclean