only do chmod if there's a file present

This commit is contained in:
Daniel Stenberg 2003-08-28 10:39:36 +00:00
parent 32899f8309
commit 8feb5110b5

View 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@' >> $@