mirror of
https://github.com/nasa/trick.git
synced 2025-04-07 19:34:23 +00:00
Create a distclean target in the sim makefile #342
added distclean target to makefile.
This commit is contained in:
parent
ba4df3387f
commit
1c7482b474
@ -668,7 +668,10 @@ clean: tidy clean_obj clean_model_io_src clean_lex_yacc_src
|
||||
real_clean: clean
|
||||
|
||||
spotless: clean
|
||||
\t@ echo \"Removed all S_mains\"\n" ;
|
||||
\t@ echo \"Removed all S_mains\"
|
||||
|
||||
distclean: clean
|
||||
\t-rm -f makefile\n" ;
|
||||
|
||||
foreach $k ( sort keys %files_by_dir ) {
|
||||
if ($files_by_dir{$k}{"writable"}) {
|
||||
@ -786,7 +789,7 @@ clean_obj: clean_model_c_obj clean_model_cpp_obj clean_model_io_obj clean_lex_ya
|
||||
print MAKEFILE "\t@ mkdir -p \$\@\n" ;
|
||||
}
|
||||
|
||||
print MAKEFILE "\napocalypse: spotless\n" ;
|
||||
print MAKEFILE "\napocalypse: distclean\n" ;
|
||||
foreach my $l ( @{$$sim_ref{sim_libraries}} ) {
|
||||
print MAKEFILE "\t- \$(MAKE) -C $l spotless\n" ;
|
||||
}
|
||||
|
@ -39,9 +39,12 @@ S_define:
|
||||
model_dirs:
|
||||
@${TRICK_HOME}/bin/C3PO -z
|
||||
|
||||
tidy clean real_clean spotless apocalypse sie ICG force_ICG help convert_swig S_define_exp:
|
||||
tidy clean real_clean spotless sie ICG force_ICG help convert_swig S_define_exp:
|
||||
@if [ -f Makefile_sim ] ; then $(MAKE) --no-print-directory -f Makefile_sim $@ ; else echo "No Makefile_sim found" ; fi
|
||||
|
||||
distclean apocalypse:
|
||||
@if [ -f Makefile_sim ] ; then $(MAKE) --no-print-directory -f Makefile_sim $@ ; else rm makefile; fi
|
||||
|
||||
# Dependencies to other files that may cause a re-CP
|
||||
-include object_${TRICK_HOST_CPU}/S_define.deps
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user