Description: Add a make file
 The upstream project does not provide a make file. This patch fixes that.
Author: Ben Howard <ben.howard@ubuntu.com>

--- /dev/null
+++ b/Makefile
@@ -0,0 +1,87 @@
+NAME = elasticache
+libdir = /usr/share/$(NAME)
+LIBDIR = $(DESTDIR)$(libdir)
+BINDIR = $(DESTDIR)/usr/bin
+MANDIR = $(DESTDIR)/usr/share/man/man1
+DOCDIR = $(DESTDIR)/usr/share/doc/$(NAME)
+
+RUNENV := $(shell b=$${PWD}; echo PATH=$$b/bin:$$PATH AWS_ELASTICACHE_HOME=$$b)
+binprogs := $(shell chmod +x elasticache && $(RUNENV) ./elasticache --commands)
+
+# Use RELEASENOTES.TXT as to get version and API number, expect something like:
+#   Auto Scaling CLI version 1.0.61.0 (API 2011-01-01)
+version := $(shell $(RUNENV) ./elasticache --version | sed -n 's,.* \([0-9.]*\) .*,\1,p')
+apidate := $(shell $(RUNENV) ./elasticache --version | sed -n 's,.* \([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]\).*,\1,p')
+
+SYSLIBS_FILE = debian/shared-java-libs
+
+# sysjars: list of jars provided by shared java libraries
+# binjars: list of jars under lib/ that are copied from source package
+sysjars := $(shell [ -n "$(SYSLIBS_FILE)" ] || exit 0; h="\#"; \
+	while read binjar pkg sysjar; do \
+	   [ "$${binjar\#$${h}}" = "$${binjar}" ] || continue; \
+	   echo $${sysjar}; done < $(SYSLIBS_FILE); )
+binjars_replaced := $(shell [ -n "$(SYSLIBS_FILE)" ] || exit 0; h="\#"; \
+	while read binjar pkg sysjar; do \
+	   [ "$${binjar\#$${h}}" = "$${binjar}" ] || continue; \
+	   echo $${binjar}; done < $(SYSLIBS_FILE); )
+
+binjars := $(shell cd lib && \
+	for binjar in $$(find * -name "*.jar"); do for sysjar in $(binjars_replaced); do \
+	   [ $${binjar} = "$${sysjar}" ] && continue 2; done; \
+	   echo $$binjar; done )
+
+JAVA_SHARED_CLASSPATH = $(shell for f in $(sysjars); do l=$${l:+$${l}:}/usr/share/java/$$f; done; echo $$l)
+
+manpages := $(binprogs:%=man/%.1)
+man: $(manpages)
+usages := $(binprogs:%=man/%.usage)
+usage: .fixperms $(usages)
+
+build: $(manpages)
+	:
+
+.fixperms:
+	chmod +x debian/xhelp2man
+	chmod +x elasticache
+	touch .fixperms
+
+debug:
+	@echo binjars=$(binjars)
+	@echo sysjars=$(sysjars)
+	@echo binjars_replaced=$(binjars_replaced)
+	@echo JAVA_SHARED_CLASSPATH=$(JAVA_SHARED_CLASSPATH)
+	@echo manpages=$(manpages)
+	@echo runenv=$(RUNENV)
+	@echo version=$(version)
+
+man/%.1: man/%.usage .fixperms
+	debian/xhelp2man man/$*.usage $* debian/name2desc $(version) > $@
+
+man/%.usage:
+	@mkdir -p man/
+	$(RUNENV) bash elasticache --desc $* > $@
+
+install:
+	mkdir -p "$(BINDIR)" "$(LIBDIR)" "$(DOCDIR)" "$(MANDIR)"
+	install elasticache "$(BINDIR)/"
+	sed -i 's,@@AWS_ELASTICACHE_HOME@@,$(libdir),' "$(BINDIR)/elasticache"
+	install elasticache.1 "$(MANDIR)/elasticache.1"
+	cd $(BINDIR) && for x in $(binprogs); do ln -s elasticache $${x}; done
+	cd $(DESTDIR)
+	cd lib && cp $(binjars) $(LIBDIR)
+	cp credential-file-path.template README.TXT "$(DOCDIR)"
+	cp $(manpages) "$(MANDIR)"
+
+build:
+	rm -rf bin || :
+
+clean:
+	cd $(DESTDIR)
+	rm -rf man
+	rm -f .fixperms
+
+uninstall:
+	cd "$(BINDIR)" && rm -f $(binprogs) || :
+	cd "$(MANDIR)" && rm -f $(man) ||:
+	cd "$(LIBDIR)" && rm -Rf $(libdirs) || :
