diff --git a/dtool/pptempl/Template.gmsvc.pp b/dtool/pptempl/Template.gmsvc.pp index 1373b1b8ff..5e6b78483d 100644 --- a/dtool/pptempl/Template.gmsvc.pp +++ b/dtool/pptempl/Template.gmsvc.pp @@ -226,7 +226,12 @@ $[TAB] rm -f $[deferred_objs] #if $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets] $[TAB] rm -f $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets] #endif +#if $[yxx_st_sources] $[lxx_st_sources] +$[TAB] rm -f $[patsubst %.yxx,%.cxx %.h,$[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_st_sources]] +#endif +#if $[py_sources] $[TAB] rm -f *.pyc *.pyo // Also scrub out old generated Python code. +#endif // 'cleanall' is intended to undo all the effects of running ppremake // and building. It removes everything except the Makefile. @@ -234,9 +239,6 @@ cleanall : clean #if $[st_sources] $[TAB] rm -rf $[ODIR] #endif -#if $[yxx_st_sources] $[lxx_st_sources] -$[TAB] rm -f $[patsubst %.yxx,%.cxx %.h,$[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_st_sources]] -#endif #if $[ne $[DEPENDENCY_CACHE_FILENAME],] $[TAB] rm -f $[DEPENDENCY_CACHE_FILENAME] #endif diff --git a/dtool/pptempl/Template.unix.pp b/dtool/pptempl/Template.unix.pp index f47ee719cb..41fdea9532 100644 --- a/dtool/pptempl/Template.unix.pp +++ b/dtool/pptempl/Template.unix.pp @@ -198,6 +198,9 @@ $[TAB] rm -f $[patsubst %,$[%_obj],$[st_sources]] #if $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets] $[TAB] rm -f $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets] #endif +#if $[yxx_st_sources] $[lxx_st_sources] +$[TAB] rm -f $[patsubst %.yxx,%.cxx %.h,$[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_st_sources]] +#endif #if $[py_sources] $[TAB] rm -f *.pyc *.pyo // Also scrub out old generated Python code. #endif @@ -208,9 +211,6 @@ cleanall : clean #if $[st_sources] $[TAB] rm -rf $[ODIR] #endif -#if $[yxx_st_sources] $[lxx_st_sources] -$[TAB] rm -f $[patsubst %.yxx,%.cxx %.h,$[yxx_st_sources]] $[patsubst %.lxx,%.cxx,$[lxx_st_sources]] -#endif #if $[ne $[DEPENDENCY_CACHE_FILENAME],] $[TAB] rm -f $[DEPENDENCY_CACHE_FILENAME] #endif