[project @ 2002-07-23 20:03:48 by ken]
authorken <unknown>
Tue, 23 Jul 2002 20:03:48 +0000 (20:03 +0000)
committerken <unknown>
Tue, 23 Jul 2002 20:03:48 +0000 (20:03 +0000)
Change "rm" in example makefile to "rm -f",
in case there is no .o file to remove

ghc/docs/users_guide/separate_compilation.sgml

index a07c3ee..ccff0b5 100644 (file)
@@ -297,7 +297,7 @@ OBJS = Main.o   Foo.o   Bar.o
 .SUFFIXES : .o .hs .hi .lhs .hc .s
 
 cool_pgm : $(OBJS)
-        rm $@
+        rm -f $@
         $(HC) -o $@ $(HC_OPTS) $(OBJS)
 
 # Standard suffix rules