Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (39 sloc) 1.284 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
TMP_DIR = ./tmp
TMP_VER = $(TMP_DIR)/version_num.tmp

default:


pythonlibdir=$(libdir)/python
nobase_pythonlib_DATA= \
         buckets.py \
         info.py \
         listservers.py \
         node.py \
         restclient.py \
         simplejson/LICENSE.txt \
         simplejson/__init__.py \
         simplejson/decoder.py \
         simplejson/encoder.py \
         simplejson/scanner.py \
         usage.py \
         util.py

pythonlib_SCRIPTS= membase

PYTHON_TOOLS= wrapper/membase

${PYTHON_TOOLS}: wrapper/wrapper
cp $< $@

CLEANFILES = ${PYTHON_TOOLS}
bin_SCRIPTS = ${PYTHON_TOOLS}

EXTRA_DIST = $(nobase_pythonlib_DATA) $(pythonlib_SCRIPTS) docs LICENSE

clean-local:
rm -f membase*tar.gz
rm -rf $(TMP_DIR)

bdist:
test -d $(TMP_DIR) || mkdir $(TMP_DIR)
git describe | sed s/-/_/g > $(TMP_VER)
rm -f ./membase-cli_*.tar.gz
rm -rf $(TMP_DIR)/membase-cli
mkdir -p $(TMP_DIR)/membase-cli/simplejson
cp membase *.py COPYING $(TMP_DIR)/membase-cli
cp simplejson/*.py $(TMP_DIR)/membase-cli/simplejson
cp simplejson/LICENSE.txt $(TMP_DIR)/membase-cli/simplejson
(cd $(TMP_DIR); tar cf - membase-cli) | gzip -9 > membase-cli_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
echo created membase-cli_`cat $(TMP_VER)`-`uname -s`.`uname -m`.tar.gz
rm -rf $(TMP_DIR)
Something went wrong with that request. Please try again.