Commit c49932b4 authored by Axel Auweter's avatar Axel Auweter
Browse files

You can now build each project by calling "make <projectname>" in the top level directory.

parent 12e37678
......@@ -20,23 +20,22 @@ check-thrift-env:
@if [ "$U" = "Darwin" ]; then \
R=`echo $$DYLD_LIBRARY_PATH | grep $P`; \
if [ "$$R" = "" ]; then \
echo "******************************************"; echo "Please type the following line before running: "; echo ' export DYLD_LIBRARY_PATH=$$DYLD_LIBRARY_PATH:$P'; echo "******************************************"; \
echo "******************************************\nPlease type the following line before running:\n export DYLD_LIBRARY_PATH=$$DYLD_LIBRARY_PATH:$P\n******************************************"; \
fi; \
fi
@if [ "$U" = "Linux" ]; then \
R=`echo $$LD_LIBRARY_PATH | grep $P`; \
if [ "$$R" = "" ]; then \
echo "******************************************"; echo "Please type the following line before running: "; echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$P'; echo "******************************************"; \
echo "******************************************\nPlease type the following line before running:\n export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$P\n******************************************"; \
fi; \
fi
cassandra-lib: cassandra
@if [ "$U" = "Linux" ]; then \
echo -n "Fixing Thrift includes... "; \
echo "Fixing Thrift includes... "; \
sed -i '1i#include <stdint.h>' cassandra/cassandra_types.h; \
sed -i '1i#include <stdint.h>' cassandra/Cassandra.h; \
echo "Done."; \
fi
cassandra:
......
......@@ -13,7 +13,7 @@ DCDBDEPLOYPATH ?= $(DCDBBUILDPATH)/deploy/
DISTFILESNAMES = $(foreach f,$(DISTFILES),$(shell echo "$(f)" | sed 's/;.*//'))
DISTFILESPATHS = $(foreach f,$(DISTFILES),$(shell echo "$(f)" | sed 's/.tar.gz;.*//'))
.PHONY : info all clean cleanall distclean
.PHONY : info all clean cleanall distclean $(PROJECTS)
info:
@echo ""
......@@ -53,8 +53,7 @@ distclean:
@rm -rf $(DCDBBUILDPATH)
all: $(DCDBBUILDPATH)/.prerequesites
@$(foreach p,$(PROJECTS),echo ""; echo "Building $(p)..."; rsync -a $(p) $(DCDBBUILDPATH)/; \
make -C $(DCDBBUILDPATH)/$(p) && echo "Installing $(p)..." && make -C $(DCDBBUILDPATH)/$(p) install; )
make -j $(MAKETHREADS) $(PROJECTS)
$(DCDBBUILDPATH)/.prerequesites: $(DCDBBUILDPATH)/.extract-distfiles
@echo ""
......@@ -109,3 +108,9 @@ $(DCDBBUILDPATH)/%/.dirstamp: $(DCDBBUILDPATH)/.download-distfiles
@cd $(DCDBBUILDPATH) && tar xzf distfiles/$(F).tar.gz
@touch $@
$(PROJECTS): $(DCDBBUILDPATH)/.prerequesites
@echo "Building $@..."
@rsync -a $@ $(DCDBBUILDPATH)/
@$(MAKE) -C $(DCDBBUILDPATH)/$@
@echo "Installing $@..."
@$(MAKE) -C $(DCDBBUILDPATH)/$@ install
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment