Skip to content
Snippets Groups Projects
Commit e8565a0d authored by Yuriy Vostrikov's avatar Yuriy Vostrikov
Browse files

[core] make all now outputing help, add make_release.sh

parent d5f4991c
No related merge requests found
......@@ -28,17 +28,27 @@ endif
endif
# this global rules are always defined
module ?= silverbox
ifeq (,$(module))
all:
@echo "Valid targets are:"
@echo " _release_box/tarantool_silverbox"
@echo " _release_feeder/tarantool_feeder"
@echo " _debug_box/tarantool_silverbox"
@echo " _debug_feeder/tarantool_feeder"
@echo " clean"
else
all: tarantool_$(module)
endif
ifeq ("$(origin module)", "command line")
.PHONY: clean
clean:
@echo " CLEAN $(module)"
@rm -rf $(obj) $(dep) tarantool_$(module) _* lcov test
else
.PHONY: clean
clean:
@for mod in mod/*; do make --no-print-directory module=`basename $$mod` clean; done
@for mod in mod/*; do $(MAKE) --no-print-directory module=`basename $$mod` clean; done
endif
.PHONY: TAGS
tags:
......@@ -64,7 +74,11 @@ endif
CFLAGS += -I$(SRCDIR) -I$(SRCDIR)/include
LIBS += -lm
subdirs = third_party mod/$(module) cfg core
subdirs += third_party
ifneq (,$(module))
subdirs += mod/$(module)
endif
subdirs += cfg core
include $(foreach dir,$(subdirs),$(SRCDIR)/$(dir)/Makefile)
tarantool_$(module): $(obj)
......
#!/bin/bash
set -e
shopt -s extglob
read -p "Enter revision: " ver
git clone . ../tarantool-$ver
rm -rf ../tarantool-$ver/.git
echo HAVE_GIT=0 > ../tarantool-$ver/config.mk
echo "const char tarantool_version_string[] = \"$ver\";" > ../tarantool-$ver/tarantool_version.h
(cd ..; tar zcvf tarantool-$ver.tar.gz tarantool-$ver)
git tag $ver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment