# uCsim gui.src/clean.mk PKGS = serio.src portmon.src # Deleting all files created by building the program # -------------------------------------------------- clean_local: rm -f *core *[%~] *.[oa] a rm -f .[a-z]*~ clean: clean_local @for pkg in $(PKGS); do\ cd $$pkg && $(MAKE) -f clean.mk clean; cd ..;\ done # Deleting all files created by configuring or building the program # ----------------------------------------------------------------- distclean_local: clean_local rm -f config.cache config.log config.status rm -f Makefile *.dep distclean: distclean_local @for pkg in $(PKGS); do\ cd $$pkg && $(MAKE) -f clean.mk distclean; cd ..;\ done # Like clean but some files may still exist # ----------------------------------------- mostlyclean: clean_local @for pkg in $(PKGS); do\ cd $$pkg && $(MAKE) -f clean.mk mostlyclean; cd ..;\ done # Deleting everything that can reconstructed by this Makefile. It deletes # everything deleted by distclean plus files created by bison, etc. # ----------------------------------------------------------------------- realclean: distclean_local @for pkg in $(PKGS); do\ cd $$pkg && $(MAKE) -f clean.mk realclean; cd ..;\ done # End of gui.src/clean.mk