From 423f9a9db26ea8ee76ed57965d80b7e39f31e3a0 Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Tue, 12 Sep 2023 16:17:13 +0100 Subject: [PATCH] Fix a build bug for XSPICE: files generated for code models are not removed when doing 'make clean' from release/src/xspice or above. --- src/xspice/icm/GNUmakefile.in | 4 ++++ 1 file changed, 4 insertions(+) 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 :