File: fix-cleaning-rules.patch

package info (click to toggle)
octave-parallel 4.0.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,752 kB
  • sloc: ansic: 23,442; cpp: 6,790; sh: 4,476; makefile: 290; perl: 170; xml: 22
file content (27 lines) | stat: -rw-r--r-- 1,427 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
Description: Fix cleaning rules in src/Makefile.in
 + Remove the bin directory in the clean rule
 + Remove the files generated by the configure script
 + Precede the rm commands with "-" where necessary
Author: Rafael Laboissière <rafael@debian.org>
Forwarded: https://savannah.gnu.org/bugs/index.php?62768
Last-Update: 2022-07-14

--- octave-parallel-4.0.1.orig/src/Makefile.in
+++ octave-parallel-4.0.1/src/Makefile.in
@@ -264,12 +264,12 @@ RDEFUNX_DLD := DEFUNX_DLD_REPLACEMENT_FO
 	(echo "#include <stdio.h>"; echo "int main () {"; sed -e s/DEFUN_DLD/$(RDEFUN_DLD)/g -e s/DEFUNX_DLD/$(RDEFUNX_DLD)/g $< | $(CXXCPP) `$(MKOCTFILE) -p INCFLAGS` -x c++ -iquote '.' -D'$(RDEFUN_DLD)(name,args,nargout,doc)=$(RDEFUN_DLD)(name,doc)' -D'$(RDEFUNX_DLD)(name,fname,gname,args,nargout,doc)=$(RDEFUN_DLD)(name,doc)' - | sed -e '/.*$(RDEFUN_DLD)/!D'; echo "}";) | $(CXX) -x c++ -D'$(RDEFUN_DLD)(name,doc)=printf("%c" #name "\n@c " #name " $<\n" doc "\n\n", 0x1D);' -o $@ -
 
 clean:
-	$(RM) $(standalone) *.o *.oct *.m octave-core *.cc.docstrings MFDOCSTRINGS *~
+	-$(RM) $(standalone) *.o *.oct *.m octave-core *.cc.docstrings MFDOCSTRINGS *~
+	-$(RM) -r ../bin
 
 distclean: clean
 	$(MAKE) -C gl distclean
-	$(RM) config.h config.log config.status
-	$(RM) Makefile
+	-$(RM) config.h config.log config.status Makefile oct-alt-includes.h
 
 maintainer-clean: distclean
-	$(RM) $(INFOFILE) $(TEXIFILE)
+	-$(RM) $(INFOFILE) $(TEXIFILE)