Browse Source

make clean cleans bison files

David Rose 21 years ago
parent
commit
b65a5d1886
2 changed files with 8 additions and 6 deletions
  1. 5 3
      dtool/pptempl/Template.gmsvc.pp
  2. 3 3
      dtool/pptempl/Template.unix.pp

+ 5 - 3
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]
 #if $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets]
 $[TAB] rm -f $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets]
 $[TAB] rm -f $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets]
 #endif
 #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.
 $[TAB] rm -f *.pyc *.pyo // Also scrub out old generated Python code.
+#endif
 
 
 // 'cleanall' is intended to undo all the effects of running ppremake
 // 'cleanall' is intended to undo all the effects of running ppremake
 // and building.  It removes everything except the Makefile.
 // and building.  It removes everything except the Makefile.
@@ -234,9 +239,6 @@ cleanall : clean
 #if $[st_sources]
 #if $[st_sources]
 $[TAB] rm -rf $[ODIR]
 $[TAB] rm -rf $[ODIR]
 #endif
 #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],]
 #if $[ne $[DEPENDENCY_CACHE_FILENAME],]
 $[TAB] rm -f $[DEPENDENCY_CACHE_FILENAME]
 $[TAB] rm -f $[DEPENDENCY_CACHE_FILENAME]
 #endif
 #endif

+ 3 - 3
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]
 #if $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets]
 $[TAB] rm -f $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets]
 $[TAB] rm -f $[lib_targets] $[static_lib_targets] $[bin_targets] $[test_bin_targets]
 #endif
 #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]
 #if $[py_sources]
 $[TAB] rm -f *.pyc *.pyo // Also scrub out old generated Python code.
 $[TAB] rm -f *.pyc *.pyo // Also scrub out old generated Python code.
 #endif
 #endif
@@ -208,9 +211,6 @@ cleanall : clean
 #if $[st_sources]
 #if $[st_sources]
 $[TAB] rm -rf $[ODIR]
 $[TAB] rm -rf $[ODIR]
 #endif
 #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],]
 #if $[ne $[DEPENDENCY_CACHE_FILENAME],]
 $[TAB] rm -f $[DEPENDENCY_CACHE_FILENAME]
 $[TAB] rm -f $[DEPENDENCY_CACHE_FILENAME]
 #endif
 #endif