buildsystem,makefiles,tarball: improve distclean targets to remove .configs/, *.ews...
[sdk] / ear / Makefile
index b117442..2fb182c 100644 (file)
@@ -1,12 +1,12 @@
-ifneq "$(V)" "1"
+ifneq ($(V),1)
 .SILENT:
 endif
 .PHONY: all nores cleantarget clean realclean distclean
 
-# CROSS-PLATFORM MAGIC
+_CF_DIR = ../
 
-include ../crossplatform.mk
-include ../default.cf
+include $(_CF_DIR)crossplatform.mk
+include $(_CF_DIR)default.cf
 
 all:
        @$(call echo,Building self-extract tool...)
@@ -31,5 +31,8 @@ realclean:
        cd cmd && $(MAKE) realclean
 
 distclean:
-       cd extract && $(MAKE) distclean
-       cd cmd && $(MAKE) distclean
+       $(MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
+
+Makefile: ;
+$(_CF_DIR)crossplatform.mk: ;
+$(_CF_DIR)default.cf: ;