< prev index next >

make/MainSupport.gmk

Print this page




  37         $(RM) -r $(SUPPORT_OUTPUTDIR)/javadoc
  38         $(RM) -r $(IMAGES_OUTPUTDIR)/docs
  39         @$(PRINTF) " done\n"
  40 endef
  41 
  42 # Cleans the dir given as $1
  43 define CleanDir
  44         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  45         @$(PRINTF) "\n" $(LOG_DEBUG)
  46         ($(CD) $(OUTPUTDIR) && $(RM) -r $1)
  47         @$(PRINTF) " done\n"
  48 endef
  49 
  50 define CleanSupportDir
  51         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  52         @$(PRINTF) "\n" $(LOG_DEBUG)
  53         $(RM) -r $(SUPPORT_OUTPUTDIR)/$(strip $1)
  54         @$(PRINTF) " done\n"
  55 endef
  56 
  57 define CleanMakeSupportDir
  58         @$(PRINTF) "Cleaning $(strip $1) make support artifacts ..."
  59         @$(PRINTF) "\n" $(LOG_DEBUG)
  60         $(RM) -r $(MAKESUPPORT_OUTPUTDIR)/$(strip $1)
  61         @$(PRINTF) " done\n"
  62 endef
  63 
  64 define CleanTest
  65         @$(PRINTF) "Cleaning test $(strip $1) ..."
  66         @$(PRINTF) "\n" $(LOG_DEBUG)
  67         $(RM) -r $(SUPPORT_OUTPUTDIR)/test/$(strip $(subst -,/,$1))
  68         # Remove as much of the test directory structure as is empty
  69         $(RMDIR) -p $(dir $(SUPPORT_OUTPUTDIR)/test/$(strip $(subst -,/,$1))) 2> /dev/null || true
  70         @$(PRINTF) " done\n"
  71 endef
  72 
  73 define Clean-gensrc
  74         @$(PRINTF) "Cleaning gensrc $(if $1,for $(strip $1) )..."
  75         @$(PRINTF) "\n" $(LOG_DEBUG)
  76         $(RM) -r $(SUPPORT_OUTPUTDIR)/gensrc/$(strip $1)
  77         @$(PRINTF) " done\n"
  78 endef
  79 
  80 define Clean-java
  81         @$(PRINTF) "Cleaning java $(if $1,for $(strip $1) )..."
  82         @$(PRINTF) "\n" $(LOG_DEBUG)
  83         $(RM) -r $(JDK_OUTPUTDIR)/modules/$(strip $1)




  37         $(RM) -r $(SUPPORT_OUTPUTDIR)/javadoc
  38         $(RM) -r $(IMAGES_OUTPUTDIR)/docs
  39         @$(PRINTF) " done\n"
  40 endef
  41 
  42 # Cleans the dir given as $1
  43 define CleanDir
  44         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  45         @$(PRINTF) "\n" $(LOG_DEBUG)
  46         ($(CD) $(OUTPUTDIR) && $(RM) -r $1)
  47         @$(PRINTF) " done\n"
  48 endef
  49 
  50 define CleanSupportDir
  51         @$(PRINTF) "Cleaning $(strip $1) build artifacts ..."
  52         @$(PRINTF) "\n" $(LOG_DEBUG)
  53         $(RM) -r $(SUPPORT_OUTPUTDIR)/$(strip $1)
  54         @$(PRINTF) " done\n"
  55 endef
  56 







  57 define CleanTest
  58         @$(PRINTF) "Cleaning test $(strip $1) ..."
  59         @$(PRINTF) "\n" $(LOG_DEBUG)
  60         $(RM) -r $(SUPPORT_OUTPUTDIR)/test/$(strip $(subst -,/,$1))
  61         # Remove as much of the test directory structure as is empty
  62         $(RMDIR) -p $(dir $(SUPPORT_OUTPUTDIR)/test/$(strip $(subst -,/,$1))) 2> /dev/null || true
  63         @$(PRINTF) " done\n"
  64 endef
  65 
  66 define Clean-gensrc
  67         @$(PRINTF) "Cleaning gensrc $(if $1,for $(strip $1) )..."
  68         @$(PRINTF) "\n" $(LOG_DEBUG)
  69         $(RM) -r $(SUPPORT_OUTPUTDIR)/gensrc/$(strip $1)
  70         @$(PRINTF) " done\n"
  71 endef
  72 
  73 define Clean-java
  74         @$(PRINTF) "Cleaning java $(if $1,for $(strip $1) )..."
  75         @$(PRINTF) "\n" $(LOG_DEBUG)
  76         $(RM) -r $(JDK_OUTPUTDIR)/modules/$(strip $1)


< prev index next >