Applied patch #2762516
[fw/sdcc] / doc / clean.mk
index add9f7fa235a7f29f1171cd25e7dad8d0751fb69..b5cd2e7b9dd109f062fc7e8e34b7c41a458562a5 100644 (file)
@@ -4,6 +4,7 @@ clean:
                *.pdf *.tex *.aux *.dvi *.idx *.ilg *.out\
                *.ind *.log *.toc *~ \#* *.ps */*.css */*.pl *.gif core *.glo
        rm -rf sdcc-doc sdcc-doc.tar.bz2
+       if [ "$(srcdir)" != "." ]; then rm -f *.lyx; fi
 
 # Deleting all files created by configuring or building the program
 # -----------------------------------------------------------------