Browse Source

doc/Makefile.am: fix file deletions, some systems would complain if files do not exist

Nathalie Furmento 12 years ago
parent
commit
c4c84125f8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      doc/Makefile.am

+ 3 - 1
doc/Makefile.am

@@ -95,7 +95,9 @@ chapters/version.texi: $(chapters)
 	fi
 	@echo "@set EDITION $(VERSION)" >> $(top_srcdir)/doc/chapters/version.texi
 	@echo "@set VERSION $(VERSION)" >> $(top_srcdir)/doc/chapters/version.texi
-	@$(RM) timestamp timestamp_updated timestamp_updated_month
+	@-for f in timestamp timestamp_updated timestamp_updated_month ; do \
+		if test -f $$f ; then $(RM) $$f ; fi ;\
+	done
 
 #$(top_srcdir)/doc/starpu.texi: vector_scal_c.texi vector_scal_cuda.texi vector_scal_opencl.texi vector_scal_opencl_codelet.texi
 #vector_scal_c.texi: $(top_srcdir)/examples/basic_examples/vector_scal.c