diff --git a/src/xspice/icm/GNUmakefile.in b/src/xspice/icm/GNUmakefile.in index 662c4103f..78e578e99 100644 --- a/src/xspice/icm/GNUmakefile.in +++ b/src/xspice/icm/GNUmakefile.in @@ -95,10 +95,14 @@ cm-descr := \ .SECONDARY : $(cm-gens) +# When recursively making clean, cm-objs and cm-gens do not contain +# the files generated for individual code models, as cmpp has already gone +# and modlist and udnlist are empty. Those files are explicitly removed. cm-clean : -rm -f $(cm)/$(cm).cm -rm -f $(cm-descr) $(cm-objs) $(cm-gens) + -rm -f $(cm)/*/*.o $(cm)/*/*.c $(cm)/*/.deps/* -rm -f $(cm-deps) cm-distclean :