]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
only do chmod if there's a file present
authorDaniel Stenberg <daniel@haxx.se>
Thu, 28 Aug 2003 10:39:36 +0000 (10:39 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 28 Aug 2003 10:39:36 +0000 (10:39 +0000)
lib/Makefile.am

index c283769ec6d360c4c649775cb1e0a7d501c98546..691d7b741a0e3f425fb7582bc11d4a5885a449f3 100644 (file)
@@ -91,7 +91,9 @@ $(srcdir)/getdate.c: getdate.y
          mv -f y.tab.c getdate.c
 
 $(srcdir)/ca-bundle.h: Makefile.in Makefile
-       chmod 0644 $@
+       @if test -f $@; then \
+         chmod 0644 $@; \
+       fi
        echo "/* The file is generated automaticly */" > $@
 if CABUNDLE
        echo '#define CURL_CA_BUNDLE @CURL_CA_BUNDLE@' >> $@