Skip to content

Commit

Permalink
add deps for zip
Browse files Browse the repository at this point in the history
  • Loading branch information
xiezhenye committed Sep 8, 2015
1 parent 7afd444 commit 797dcda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ ARCH=$(shell uname -ms|tr '[:upper:] ' '[:lower:].')
all:binlog_undo
.PHONY : all


zip:binlog_undo.$(ARCH).zip
.PHONY : all

binlog_undo.o:binlog_undo.cc binlog_undo.h
g++ $(INCLUDES) binlog_undo.cc -c -std=c++11 -g -O2 -Wall -o binlog_undo.o

Expand All @@ -24,7 +28,7 @@ binlog_undo:main.o binlog_undo.o $(LIBBINLOGSTANDALONE) $(LIBMYSQLCLIENT)
-lboost_program_options \
-o binlog_undo

zip:binlog_undo
binlog_undo.$(ARCH).zip:binlog_undo ../README.md ../LICENSE
mkdir -p binlog_undo.$(ARCH)
cp binlog_undo ../README.md ../LICENSE binlog_undo.$(ARCH)
zip -r binlog_undo.$(ARCH).zip binlog_undo.$(ARCH)
Expand Down

0 comments on commit 797dcda

Please sign in to comment.