Fix a build bug for XSPICE: files generated for code models are

not removed when doing 'make clean' from release/src/xspice or above.
This commit is contained in:
Giles Atkinson 2023-09-12 16:17:13 +01:00 committed by Holger Vogt
parent 930bd12dc2
commit 423f9a9db2
1 changed files with 4 additions and 0 deletions

View File

@ -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 :