* Makefile.in, configure.in, configure,
[fw/sdcc] / doc / clean.mk
index 2e7d978a9707f5d82bfc2315ac72be7b5776b50d..b5cd2e7b9dd109f062fc7e8e34b7c41a458562a5 100644 (file)
@@ -1,11 +1,21 @@
-# remove intermediate file, not the final pdf's and html's
-# because these are needed for the distribution
 clean:
-       rm -rf *.tex *.aux *.dvi *.idx *.ilg *.ind *.log *.toc *~ \#* \
-               *.ps */*.css */*.pl *.gif core
+       rm -rf $(MANUAL).html $(TSS).html $(CDB).html
+       rm -rf $(MANUAL).txt $(TSS).txt $(CDB).txt \
+               *.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
 
-# now get rid of the generated pdf's and html's as well
-superclean: clean
-       rm -rf *.pdf $(MANUAL).html $(TSS).html
+# Deleting all files created by configuring or building the program
+# -----------------------------------------------------------------
+distclean: clean
+       rm -f Makefile
 
-distclean: superclean
+# Like clean but some files may still exist
+# -----------------------------------------
+mostlyclean: clean
+
+# Deleting everything that can reconstructed by this Makefile. It deletes
+# everything deleted by distclean plus files created by bison, etc.
+# -----------------------------------------------------------------------
+realclean: distclean