Przeglądaj źródła

add clean-optchar

David Rose 16 lat temu
rodzic
commit
703585b0ac
1 zmienionych plików z 9 dodań i 1 usunięć
  1. 9 1
      dtool/pptempl/Template.models.pp

+ 9 - 1
dtool/pptempl/Template.models.pp

@@ -114,6 +114,9 @@
      $[build_maya_eggs] \
      $[build_soft_eggs]]
 
+#define optchar_dirs \
+   $[unique $[forscopes optchar_egg,$[TARGET_DIR]]]
+
 #if $[LANGUAGES]
   #forscopes install_egg filter_egg
     #if $[SOURCES]
@@ -266,6 +269,11 @@ clean-soft :
 $[TAB]$[DEL_CMD] $[build_soft_eggs]
 #endif
 
+clean-optchar :
+#if $[optchar_dirs]
+$[TAB]rm -rf $[optchar_dirs]
+#endif
+
 clean : clean-pal
 #if $[build_eggs]
 $[TAB]$[DEL_CMD] $[build_eggs] *.pt
@@ -770,7 +778,7 @@ all : egg pal repal $[subdirs]
 
 install : all $[subdirs:%=install-%]
 
-#define sub_targets egg flt lwo maya soft bam pal clean-bam clean-pal clean-flt clean-lwo clean-maya clean-soft clean cleanall unpack-soft install-bam install-other uninstall-bam uninstall-other uninstall
+#define sub_targets egg flt lwo maya soft bam pal clean-bam clean-pal clean-flt clean-lwo clean-maya clean-soft clean-optchar clean cleanall unpack-soft install-bam install-other uninstall-bam uninstall-other uninstall
 
 // Define the rules to propogate these targets to the Makefile within
 // each directory.