File: fix_clean_target.patch

package info (click to toggle)
epcr 2.3.12-1-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 740 kB
  • sloc: cpp: 5,730; ansic: 231; makefile: 31
file content (23 lines) | stat: -rw-r--r-- 511 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Andreas Tille <tille@debian.org>
Date: Tue, 22 Feb 2011 09:09:21 +0100
Description: Do not let clean target fail if there is nothing to clean

--- epcr-2.3.12.orig/stand/config.mk
+++ epcr-2.3.12/stand/config.mk
@@ -94,13 +94,13 @@
 	done
 
 clean: 
-	-rm $(OBJ) $(HDR:%=%~) $(SRC:%=%~)
+	-rm -f $(OBJ) $(HDR:%=%~) $(SRC:%=%~)
 
 clean-all: clean
-	-rm $(TARGET) 
+	-rm -f $(TARGET) 
 
 dist-clean: clean-all
-	-rm *~
+	-rm -f *~
 	-test -L $(LIBNAME) && rm $(LIBNAME)
 
 $(objdir)/%.o: $(srcdir)/%.cpp