Repository: bigtop
Updated Branches:
  refs/heads/master 56eaefb7a -> 71b61d899


BIGTOP-1314. Deprecate make build


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/71b61d89
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/71b61d89
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/71b61d89

Branch: refs/heads/master
Commit: 71b61d899d42b04e17966528026ca287143c9a7b
Parents: 56eaefb
Author: Konstantin Boudnik <[email protected]>
Authored: Sun Jun 1 12:00:46 2014 -0700
Committer: Konstantin Boudnik <[email protected]>
Committed: Sun Jun 1 12:00:46 2014 -0700

----------------------------------------------------------------------
 Makefile   | 19 ++++++++++++++-----
 package.mk | 10 +++++-----
 2 files changed, 19 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/71b61d89/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index 9504dab..5d9e209 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,15 @@ OUTPUT_DIR?=$(BASE_DIR)/output
 REPO_DIR  ?=$(BASE_DIR)/bigtop-repos
 DIST_DIR  ?=$(BASE_DIR)/dist
 
+deprecate:
+       @echo "    WARNING!!!"
+       @echo "      make based packages build system is DEPRECATED"
+       @echo "      and will be removed in the future releases."
+       @echo "      New system based on Gradle has been introduced"
+       @echo "      and will be actively supported in the next releases."
+       @echo "      Please run 'gradle' for future references."
+       @echo ""
+
 REQUIRED_DIRS = $(BUILD_DIR) $(DL_DIR) $(OUTPUT_DIR)
 _MKDIRS :=$(shell for d in $(REQUIRED_DIRS); \
   do                               \
@@ -39,12 +48,12 @@ APACHE_ARCHIVE ?= http://archive.apache.org/dist
 include package.mk
 include bigtop.mk
 
-help: package-help
+help: deprecate package-help
 
-all: srpm sdeb
+all: deprecate srpm sdeb
 world: all
 
-packages: $(TARGETS)
+packages: deprecate $(TARGETS)
 
 help-header:
        @echo "    Bigtop BOM: $(BIGTOP_BOM)"
@@ -59,7 +68,7 @@ help-header:
 
 package-help: help-header $(TARGETS_HELP)
 
-clean: $(TARGETS_CLEAN)
+clean: deprecate $(TARGETS_CLEAN)
        -rm -rf $(BUILD_DIR)
        -rm -rf $(OUTPUT_DIR)
        -rm -rf $(DIST_DIR)
@@ -84,7 +93,7 @@ relnotes: $(TARGETS_RELNOTES)
 checkenv:
        ./check-env.sh
 
-dist: realclean
+dist: deprecate realclean
        mkdir -p $(DIST_DIR)
        rsync -avz --exclude=.svn --exclude=.git --exclude=.gitignore 
--exclude=dist "$(BASE_DIR)/" "$(DIST_DIR)/bigtop-$(BIGTOP_VERSION)"
        cd $(DIST_DIR) && tar -cvzf 
"$(DIST_DIR)/bigtop-$(BIGTOP_VERSION).tar.gz" "bigtop-$(BIGTOP_VERSION)"

http://git-wip-us.apache.org/repos/asf/bigtop/blob/71b61d89/package.mk
----------------------------------------------------------------------
diff --git a/package.mk b/package.mk
index 3919fe9..038ebfa 100644
--- a/package.mk
+++ b/package.mk
@@ -199,7 +199,7 @@ $(1)-tar: $(1)-download $$($(2)_TARGET_TAR)
 $(1)-srpm: $(1)-tar $$($(2)_TARGET_SRPM)
 
 # To make binary rpms, we need to build source RPMs
-$(1)-rpm: $(1)-srpm $$($(2)_TARGET_RPM)
+$(1)-rpm: deprecate $(1)-srpm $$($(2)_TARGET_RPM)
 
 # To make a yum/zypper repo, we need to build binary RPMs
 $(1)-yum: $(1)-rpm $$($(2)_TARGET_YUM)
@@ -208,17 +208,17 @@ $(1)-yum: $(1)-rpm $$($(2)_TARGET_YUM)
 $(1)-sdeb: $(1)-tar $$($(2)_TARGET_SDEB)
 
 # To make debs, we need to make source packages
-$(1)-deb: $(1)-sdeb $$($(2)_TARGET_DEB)
+$(1)-deb: deprecate $(1)-sdeb $$($(2)_TARGET_DEB)
 
 # To make an apt repo, we need to build binary DEBs
 $(1)-apt: $(1)-deb $$($(2)_TARGET_APT)
 
 ####
 # Helper targets -version -help etc
-$(1)-version:
+$(1)-version: deprecate
        @echo "Base: $$($(2)_BASE_VERSION)"
 
-$(1)-help:
+$(1)-help: deprecate
        @echo "    $(1)  [$(1)-version, $(1)-info, $(1)-relnotes,"
        @echo "           $(1)-srpm, $(1)-rpm]"
        @echo "           $(1)-sdeb, $(1)-deb]"
@@ -226,7 +226,7 @@ $(1)-help:
 $(1)-clean:
        rm -rf $(BUILD_DIR)/$(1)
 
-$(1)-info:
+$(1)-info: deprecate
        @echo "Info for package $(1)"
        @echo "  Will download from URL: $$($(2)_DOWNLOAD_URL)"
        @echo "  To destination file: $$($(2)_DOWNLOAD_DST)"

Reply via email to